This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mbyt
Recipients mbyt
Date 2014-02-05.21:57:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1391637453.5.0.977818995818.issue20523@psf.upfronthosting.co.za>
In-reply-to
Content
The global .pdbrc file is determined by the %HOME% environment variable. However, this is not available out of the box on e.g. windows 7 systems. Here only %HOMEDRIVE% and %HOMEPATH% are defined.

Thus the usual approach to have a global .pdbrc file on windows is to define a %HOME% environment variable by hand. This could be avoided if the global .pdbrc would be determined by os.path.expanduser("~/.pdbrc"), which works on current windows and does the magic behind.

There are two possible approaches to improve this situation:
* explicitly mention in the docs that on windows a %HOME% varialbe need to be created manually
* patch pdb.py to use os.path.expanduser instead (see attached diff)

For reference, see also old discussion https://mail.python.org/pipermail/python-list/2005-October/349550.html.
History
Date User Action Args
2014-02-05 21:57:33mbytsetrecipients: + mbyt
2014-02-05 21:57:33mbytsetmessageid: <1391637453.5.0.977818995818.issue20523@psf.upfronthosting.co.za>
2014-02-05 21:57:33mbytlinkissue20523 messages
2014-02-05 21:57:33mbytcreate