Use "." instead of os.getcwd() for current directory. This prevents errors from os.getcwd() (for example on stale NFS mounts)

This commit is contained in:
Bastian Kleineidam 2012-10-12 15:39:01 +02:00
parent e2d6f4b32b
commit 9ae920ff1b
1 changed files with 1 additions and 1 deletions

View File

@ -486,7 +486,7 @@ def _handle_archive (archive, command, *args, **kwargs):
cmd_kwargs["outdir"] = kwargs["outdir"]
do_cleanup_outdir = False
else:
cmd_kwargs['outdir'] = util.tmpdir(dir=os.getcwd())
cmd_kwargs['outdir'] = util.tmpdir(dir=".")
do_cleanup_outdir = True
elif command == 'create' and os.path.basename(program) == 'arc' and \
".arc" in archive and not archive.endswith(".arc"):