I've recently downloaded the objectified MUSHclient objects from few threads down and I'm trying to use them in my code. The problem I'm encountering is that no matter how I manipulate sys.path or where I place the module, I cannot import ANYTHING that isn't directly in the script that MUSHclient is told to load. What am I missing here?
Importing Modules
Posted by Drakonik on Fri 08 Jun 2012 10:57 PM — 3 posts, 19,614 views.
It's been several years since I used Python with MUSHclient. Can you show how you manipulated sys.path and what didn't work with it?
sys.path.append(r'C:\Program Files (x86)\MUSHclient\scripts\')
My script was UL.pys in scripts\. I had my test module in a directory named foo\, and foo\ contained an __init__.py and a test.py. I added the scripts directory to the import path as listed above and I was still unable to import any variation of foo or test.
My script was UL.pys in scripts\. I had my test module in a directory named foo\, and foo\ contained an __init__.py and a test.py. I added the scripts directory to the import path as listed above and I was still unable to import any variation of foo or test.