diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-02-20 23:38:06 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-02-20 23:38:06 +0000 |
| commit | 97256bc39cb07b60afd08f799d31282b0813469a (patch) | |
| tree | 97715b759e5512363b93b0b216393653645f1cf2 /setup.py | |
| parent | a52cc033749d288aa117f480959e43e7c8b8f031 (diff) | |
Fixed #3536 -- Fixed setup.py so that it prints a usage message if you
accidently invoke it without any arguments.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4550 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'setup.py')
| -rw-r--r-- | setup.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -28,7 +28,7 @@ for dirpath, dirnames, filenames in os.walk(django_dir): # Small hack for working with bdist_wininst. # See http://mail.python.org/pipermail/distutils-sig/2004-August/004134.html -if sys.argv[1] == 'bdist_wininst': +if len(sys.argv) > 1 and sys.argv[1] == 'bdist_wininst': for file_info in data_files: file_info[0] = '/PURELIB/%s' % file_info[0] |
