From 84f9f45f984cbf0b4192cae49e51333767bb5576 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jurko=20Gospodneti=C4=87?= Date: Sat, 5 Apr 2014 08:47:04 +0200 Subject: [PATCH 1/3] fix runtox.py failure when 'tox' is not available on the current system path Now just assumes that the tox module is available in the executing Python environment. --HG-- branch : jurko/tox_usage --- runtox.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtox.py b/runtox.py index 94e80ba4f..40fbcb569 100644 --- a/runtox.py +++ b/runtox.py @@ -4,7 +4,7 @@ import subprocess import sys if __name__ == "__main__": - subprocess.call(["tox", + subprocess.call([sys.executable, "-m", "tox", "-i", "ALL=https://devpi.net/hpk/dev/", "--develop",] + sys.argv[1:]) From c2c504797e25d546c7bc7f9e900bb990ec6ba5c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jurko=20Gospodneti=C4=87?= Date: Sat, 5 Apr 2014 08:49:30 +0200 Subject: [PATCH 2/3] stylistic runtox.py code cleanup --HG-- branch : jurko/tox_usage --- runtox.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/runtox.py b/runtox.py index 40fbcb569..d4cc30d96 100644 --- a/runtox.py +++ b/runtox.py @@ -6,5 +6,4 @@ import sys if __name__ == "__main__": subprocess.call([sys.executable, "-m", "tox", "-i", "ALL=https://devpi.net/hpk/dev/", - "--develop",] + sys.argv[1:]) - + "--develop"] + sys.argv[1:]) 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 3/3] 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:])