Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=4979295
By: mkearney
On my vista system
When running the code, that is when the code works, os.sys.path is:
['C:\\Users\\mkearney\\workspace\\xxxxx\\src',
'C:\\opt\\eclipse-SDK-3.3.2-win32\\eclipse\\plugins\\org.python.pydev_1.3.17\\PySrc',
'C:\\opt\\python252', 'C:\\opt\\python252\\DLLs', 'C:\\opt\\python252\\lib',
'C:\\opt\\python252\\lib\\lib-tk', 'C:\\opt\\python252\\lib\\plat-win',
'C:\\opt\\python252\\lib\\site-packages', 'C:\\Windows\\system32\\python25.zip']
'C:\\Users\\mkearney\\workspace\\xxxxx\\src' is my source directory
When debugging, os.sys.path is:
['C:\\Windows\\system32',
'C:\\opt\\eclipse-SDK-3.3.2-win32\\eclipse\\plugins\\org.python.pydev.debug_1.3.
17\\pysrc', 'C:\\opt\\eclipse-SDK-3.3.2-win32\\eclipse\\plugins\\org.python.pyde
v_1.3.17\\PySrc', 'C:\\opt\\python252', 'C:\\opt\\python252\\DLLs',
'C:\\opt\\python252\\lib', 'C:\\opt\\python252\\lib\\lib-tk',
'C:\\opt\\python252\\lib\\plat-win', 'C:\\opt\\python252\\lib\\site-packages',
'C:\\Windows\\system32\\python25.zip']
When I add code to insert the 3 missing directories, things work. So where are
those dirs normally added to
os.sys.path>
As for regular vs relative import, I don't really know. I have not found it
necessary to make the distinction so far. The import is in __main__ module as
shown in the small example. And "it worked before", the plaintive cry of a
confused
user. However, on the vista system I am running, python 2.5.2. On the XP system,
I am running python 2.5.
-m
______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=293649
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Pydev-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pydev-users