aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/script.py
diff options
context:
space:
mode:
Diffstat (limited to 'libmproxy/script.py')
-rw-r--r--libmproxy/script.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmproxy/script.py b/libmproxy/script.py
index 6dd79199..8bfacb38 100644
--- a/libmproxy/script.py
+++ b/libmproxy/script.py
@@ -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