From 45fabf4b9642b262e457d52660daefb160be3ad9 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Wed, 7 Sep 2011 18:10:58 -0400 Subject: [PATCH] cleaner setup.py --- setup.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index c5ad9d6..de7dcb0 100755 --- a/setup.py +++ b/setup.py @@ -12,12 +12,12 @@ except ImportError: -if sys.argv[-1] == "publish": - os.system("python setup.py sdist upload") +if 'publish' in sys.argv: + os.system('python setup.py sdist upload') sys.exit() -if sys.argv[-1] == "test": - os.system("python test_requests.py") +if 'test' in sys.argv: + os.system('python test_requests.py') sys.exit() required = [] -- 2.34.1