Reputation: 67
I am trying to build some python script. I have imported (import Handler) set of functions in my main script (start.py). In start.py I call one of the imported functions to dynamically import scripts from config (dir1). I need to use 1 function (message(self, text) what is in my main script start.py in class MyScript(Protocol)) in one of imported files from config. So my directory structure is:
MainDir
start.py (main script)
Handler.py
config.cfg
dir1 (dir with plugins)
HelloWorld.py (this needs to use function from start.py)
Can you help me, please? Thank you. EDIT: Start.py is Twisted TCP server, I need tu use some twisted functions in my plugins.
Upvotes: 0
Views: 256
Reputation: 5766
Here are a couple more options:
Upvotes: 1