# HG changeset patch # User Jeff Hammel # Date 1272041296 25200 # Node ID 7e538a4b0e790ec703a0d928e17a5807755c6934 # Parent f63e51490c614f5954e5d709c4e754946e99d998 make directories work like they should diff -r f63e51490c61 -r 7e538a4b0e79 stampit/main.py --- a/stampit/main.py Fri Apr 23 09:17:51 2010 -0700 +++ b/stampit/main.py Fri Apr 23 09:48:16 2010 -0700 @@ -64,9 +64,14 @@ for option in 'virtualenv', 'output', 'directory': # expand ~ arguments path = getattr(options, option) - if path is not None and '~' in path: - setattr(options, option, os.path.expanduser(path)) - callargs = options.verbose and {} or { 'stdout': subprocess.PIPE } + if path is not None: + if '~' in path: + path = os.path.expanduser(path) + setattr(options, option, os.path.abspath(path)) + + callargs = {} + if not options.verbose: # suppress output + callargs = {'stdout': subprocess.PIPE} if options.quiet: callargs['stderr'] = subprocess.PIPE if not args: