Reply to this subject
Start a new subject
 
Refresh page
| Posted by |
Drakonik
(20 posts) bio
|
| Date |
Fri 08 Jun 2012 10:57 PM (UTC) [ quote
] |
| Message |
| 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? | top |
|
| Posted by |
Worstje
Netherlands (867 posts) bio
|
| Date |
Reply #1 on Sat 09 Jun 2012 03:21 AM (UTC) [ quote
] |
| Message |
| 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? | top |
|
| Posted by |
Drakonik
(20 posts) bio
|
| Date |
Reply #2 on Sat 09 Jun 2012 08:14 AM (UTC) [ quote
] |
| Message |
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. | top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
715 views.
Reply to this subject
Start a new subject
 
Refresh page
top
Comments to:
Gammon Software support
Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )