[pywin32-bugs] [ pywin32-Bugs-2571135 ] edit with pythonwin - importing issue
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2009-03-30 12:31:47
|
Bugs item #2571135, was opened at 2009-02-06 15:17 Message generated for change (Comment added) made by mhammond You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=2571135&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: pythonwin Group: None >Status: Closed >Resolution: Wont Fix Priority: 5 Private: No Submitted By: George Hebert (g_hebert) Assigned to: Nobody/Anonymous (nobody) Summary: edit with pythonwin - importing issue Initial Comment: There is a feature that I have been using for quite a while in PythonWin that is no longer working the way it once was and that is when you right-click on a .py file and click "edit in pythonwin". Normally when I do this and it opens pythonwin, I can import files within the interpreter that happen to be located in the same folder. After editing this file, if I attempt to import a file in the interpreter it does not find the file. The way I have had to fix this is by running the following command every time I open pythonwin: import sys sys.path.insert(0, '') After I have done this, pythonwin seems to do what it use to do and allows me to import files in the same directory as the file that I right-clicked on and said "edit with pythonwin". Note: This feature worked on version 2.5 and below. ---------------------------------------------------------------------- >Comment By: Mark Hammond (mhammond) Date: 2009-03-30 23:31 Message: This will be due to various things no longer changing the cwd of the process. If hitting File->Import or File->Run on the module fails due to import errors for modules in the same directory, then I would consider that a bug, in which case please re-open. Thanks ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=2571135&group_id=78018 |