Merge pull request #788 from sethp-jive/patch-1

Allow reading scripts from an anonymous pipe
This commit is contained in:
Maximilian Hils 2015-10-01 00:59:25 +02:00
commit d67f4fa3cc

View File

@ -83,7 +83,7 @@ class Script:
"If your script path contains spaces, "
"make sure to wrap it in additional quotes, e.g. -s \"'./foo bar/baz.py' --args\".") %
args[0])
elif not os.path.isfile(args[0]):
elif os.path.isdir(args[0]):
raise ScriptError("Not a file: %s" % args[0])
return args