Bugs item #1037579, was opened at 2004-09-30 10:05
Message generated for change (Comment added) made by kxroberto
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1037579&group_id=78018
Category: pythonwin
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Robert Kiendl (kxroberto)
Assigned to: Nobody/Anonymous (nobody)
Summary: Often doesn't see absolute identity of path of edited files
Initial Comment:
Often after some programming session I have multiple
instances of an edited file in the windows list with
little differences in file name: Upper/lower case
differences, "programme/xy..." & "progra~1/xy" differences
somehow PythonWin doesn't see the identity of those
files. PyWin should maybe use
os.path.normcase(os.path.normpath(os.path.abspath(x)))
somewhere in the framework code ?
I rare cases edited code gets lost. But most times the
auto-reload feature prevents more severe losses (unless
I disable auto-reaload !)
Robert
----------------------------------------------------------------------
>Comment By: Robert Kiendl (kxroberto)
Date: 2004-10-08 11:39
Message:
Logged In: YES
user_id=972995
I checked to reproduce:
I open a file - exited pywin - re-run - 1: select from
menu/file/history 2: open-context-edit the same file from
explorer => 2 windows
.py / Edit command in Explorer
C:\PYTHON23\pythonwin.exe "%1" (Uses DDE)
the file path of all the different window instances is
correctly always the same, but multiple windows with
described problem:
>>> a=win32ui.GetApp()
>>>
a.frame.MDIGetActive()[0].GetEditorView().GetDocument().GetPathName()
'C:\devel\TURBOM~1\tea_dscore.py'
#switch to next window
>>>
a.frame.MDIGetActive()[0].GetEditorView().GetDocument().GetPathName()
'C:\devel\TURBOM~1\tea_dscore.py'
#switch to next window
>>>
a.frame.MDIGetActive()[0].GetEditorView().GetDocument().GetPathName()
'C:\devel\TURBOM~1\tea_dscore.py'
>>>
----------------------------------------------------------------------
Comment By: Mark Hammond (mhammond)
Date: 2004-10-08 08:30
Message:
Logged In: YES
user_id=14198
Can you please tell me how to reproduce this - I can not.
Whatever case I use to open the file, I never get the same
file opened twice.
I can reproduce the problem with "progra~1"
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1037579&group_id=78018
|