[IronPython] How come I cant import time or threading in IronPython

2009-03-18 Thread BlackMan890
: No module named thread Why am I encountering there problems? Sincerely: Jonatan Nilsson Iceland -- View this message in context: http://www.nabble.com/How-come-I-cant-import-time-or-threading-in-IronPython-tp22581456p22581456.html Sent from the IronPython mailing list archive at Nabble.com

Re: [IronPython] How come I cant import time or threading in IronPython

2009-03-18 Thread Michael Foord
These libraries you are attempting to import are Python standard library modules. To import them you must have the Python standard library available - and on sys.path for the engine being used to do the imports. You set sys.path programattically using engine.SetSearchPaths (?) passing in an

Re: [IronPython] How come I cant import time or threading in IronPython

2009-03-18 Thread Jonatan Nilsson
Thank you for your quick response. I tried doing what you asked me. I added the following to the engine code: --- ScriptEngine engine = Python.CreateEngine(); engine.SetSearchPaths(new string[] { C:\\Program Files\\IronPython-2.0.1\\Lib\\, C:\\Python25\\Lib\\ });

Re: [IronPython] How come I cant import time or threading in IronPython

2009-03-18 Thread Dino Viehland
, 2009 9:08 AM To: Discussion of IronPython Subject: Re: [IronPython] How come I cant import time or threading in IronPython Thank you for your quick response. I tried doing what you asked me. I added the following to the engine code: --- ScriptEngine engine

Re: [IronPython] How come I cant import time or threading in IronPython

2009-03-18 Thread Jonatan Nilsson
Ok, I figured it out. I forgot to add C:\\Program Files\\IronPython-2.0.1 and C:\\Python25 Thanks for all the help :D Jonatan Nilsson wrote: Thank you for your quick response. I tried doing what you asked me. I added the following to the engine code: ---