cmdmod: should be if, not elif; CWD validity check shouldn't be Windows-only

This commit is contained in:
Chris Rebert 2013-09-10 21:22:00 -07:00
parent e644de7e76
commit 2c8d74edbd

View File

@ -331,7 +331,7 @@ def _run(cmd,
kwargs['executable'] = shell
kwargs['close_fds'] = True
elif not os.path.isabs(cwd) or not os.path.isdir(cwd):
if not os.path.isabs(cwd) or not os.path.isdir(cwd):
raise CommandExecutionError(
'Specified cwd {0!r} either not absolute or does not exist'
.format(cwd)