[Python-bugs-list] [ python-Bugs-477999 ] win32ui.FullPath() fails in PythonWin
noreply@sourceforge.net
noreply@sourceforge.net
Tue, 06 Nov 2001 15:50:29 -0800
Bugs item #477999, was opened at 2001-11-04 06:49
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=477999&group_id=5470
Category: Windows
Group: Python 2.1.1
>Status: Closed
>Resolution: Wont Fix
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Mark Hammond (mhammond)
Summary: win32ui.FullPath() fails in PythonWin
Initial Comment:
A line in a method of a Class, like the following:
self.name = win32ui.FullPath(self.name)
works fine when a script is run from the command line.
However, it fails when run in PythonWin. From the
command line, the full path is set for a filename. In
PythonWin, a filename is always shown/returned as
being in the root directory of a drive.
Using:
ActivePython 2.1.1, build 212 (ActiveState)
Python 2.1.1 (#20, Jul 26 2001, 11:38:51) [MSC 32 bit
(Intel)] on win32
and the PythonWin that came with this release.
----------------------------------------------------------------------
>Comment By: Mark Hammond (mhammond)
Date: 2001-11-06 15:50
Message:
Logged In: YES
user_id=14198
win32ui.FullPath uses the cwd to determine the full path -
this is by design. I agree Pythonwin should be smarter
about the cwd for the script, and indeed the next version
will use the scripts directory as the cwd. Later versions
may also allow this to be specified in the "Run" dialog.
Resolving as not a bug.
----------------------------------------------------------------------
Comment By: Tim Peters (tim_one)
Date: 2001-11-04 10:48
Message:
Logged In: YES
user_id=31435
Reassigned to MarkH. Anonymous, you should really report
this to ActiveState.
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2001-11-04 07:16
Message:
Logged In: NO
This might not be a bug. Apparently PythonWin does not
default to the directory of the script that is being run.
When I close PythonWin and restart it in the directory of
the script that is being run, win32ui.FullPath() works. I
don't know if this is intentional behavior or not. It it is
not, I suggest that the directory of the script in the "Run
Script" dialog of PythonWin be the current/default
directory.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=477999&group_id=5470