I am trying to define a function which imports modules and place that function in a module of my own so that when I am working on a certain type of project all I need to type is:
import from user * setup() #setup is the function which imports the modules However, whenever I try this, it simply doesn't work. trying to call upon the modules defined in setup after I have run the function only results in an error saying that the modules aren't installed.
Here is the code in my module:
def setup(): import keyboard, win32api, win32con Let me know if there is any more information I can provide, and thanks for any help.