[Python-bugs-list] [ python-Bugs-494589 ] os.path.expandvars deletes things on w32

noreply@sourceforge.net noreply@sourceforge.net
Tue, 18 Dec 2001 06:29:54 -0800


Bugs item #494589, was opened at 2001-12-18 06:29
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=494589&group_id=5470

Category: Python Library
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Michael McCandless (mikemccand)
Assigned to: Nobody/Anonymous (nobody)
Summary: os.path.expandvars deletes things on w32

Initial Comment:

Try this:

  import os.path
  print os.path.expandvars('foo$doesnotexist')

On FreeBSD, Python 2.1, I get:

  'foo$doesnotexist'

But on WIN32, Python 2.1, I get:

  'foo'

The docs explicitly states that variables that are not 
found will be left in place ... but on win32 that 
appears to not be the case.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=494589&group_id=5470