Steven Bethard added the comment: 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? ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue15874> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com