From: Kenneth Reitz Date: Wed, 7 Sep 2011 22:10:58 +0000 (-0400) Subject: cleaner setup.py X-Git-Tag: v0.8.0~94^2~109 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=45fabf4b9642b262e457d52660daefb160be3ad9;p=services%2Fpython-requests.git cleaner setup.py --- 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 = []