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 bethard
Recipients ZhuangZi, bethard, r.david.murray
Date 2012-09-07.07:29:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1347002954.26.0.549850811141.issue15874@psf.upfronthosting.co.za>
In-reply-to
Content
You could try declaring a type converter and using the type= parameter of add_argument. Your type converter could look something like:

    def expanded_path(arg):
        return os.path.expandvars(arg)

Would that work?
History
Date User Action Args
2012-09-07 07:29:14bethardsetrecipients: + bethard, r.david.murray, ZhuangZi
2012-09-07 07:29:14bethardsetmessageid: <1347002954.26.0.549850811141.issue15874@psf.upfronthosting.co.za>
2012-09-07 07:29:13bethardlinkissue15874 messages
2012-09-07 07:29:13bethardcreate