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
This commit is contained in:
Jurko Gospodnetić 2014-04-05 08:51:00 +02:00
parent c2c504797e
commit fd059359cc
1 changed files with 2 additions and 3 deletions

View File

@ -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:])