From: Mark A. <mar...@ho...> - 2002-03-05 22:16:01
|
We're downloading jython modules from a server as the user requests them. Since the modules can live in different directories on the server we would like to keep the same directory structure on the client. So the plotTest.py file get downloaded to the pythonCache/a/b/scripts directory off of the current directory. I've tried the following code snippet to import the module but I can't quite get it to work: try: sys.path.index("pythonCache/a/b/scripts") except: sys.path.append("pythonCache/a/b/scripts") import pythonCache.a.b.plotTest pythonCache.a.b.plotTest.printHello() but I get ImportError: No module named plotTest what am I doing wrong here? Thanks, Mark _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx |