Hi everyone,
I would like to create a module (let's call it FooBar) that I could import in few of my "main" programs.
But the functions within FooBar rely on other modules... that are already imported inside the main program.
is there a way that the FooBar doesn't need to import them too ?
Because the following is not working.
MAIN.py
I would like to create a module (let's call it FooBar) that I could import in few of my "main" programs.
But the functions within FooBar rely on other modules... that are already imported inside the main program.
is there a way that the FooBar doesn't need to import them too ?
Because the following is not working.
MAIN.py
import sqlite3 from FooBar import * test()FooBar.py
def test(): with sqlite3.connect('aSQLitedb') as connection....
Error:NameError: name ‘sqlite3’ is not defined
Thanks.
![[Image: NfRQr9R.jpg]](https://i.imgur.com/NfRQr9R.jpg)