From fd059359cce96befeadd4a103853f84d5ffc41a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jurko=20Gospodneti=C4=87?= Date: Sat, 5 Apr 2014 08:51:00 +0200 Subject: [PATCH] make runtox.py not import external modules unless run as a script Was not needed since the script actually does nothing unless run as a script. --HG-- branch : jurko/tox_usage --- runtox.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/runtox.py b/runtox.py index d4cc30d96..8c13c53e1 100644 --- a/runtox.py +++ b/runtox.py @@ -1,9 +1,8 @@ #!/usr/bin/env python -import subprocess -import sys - if __name__ == "__main__": + import subprocess + import sys subprocess.call([sys.executable, "-m", "tox", "-i", "ALL=https://devpi.net/hpk/dev/", "--develop"] + sys.argv[1:])