[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-02-06 04:17:15
|
Bugs item #2571135, was opened at 2009-02-05 21:17 Message generated for change (Tracker Item Submitted) made by Item Submitter 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: Open Resolution: None 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. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=2571135&group_id=78018 |