Mercurial > p > roundup > code
comparison setup.py @ 4896:756ff1c2ee41
Fix setting the working directory in setup.py
The original patch to set the working directory did not take into
account running the setup.py script without a path, so we need to
default to the current path if one is not present.
| author | John Kristensen <john@jerrykan.com> |
|---|---|
| date | Mon, 12 May 2014 14:05:14 +1000 |
| parents | 1484893daeff |
| children | 9369ade6c24b |
comparison
equal
deleted
inserted
replaced
| 4895:c86bc9646652 | 4896:756ff1c2ee41 |
|---|---|
| 157 packages=packages, | 157 packages=packages, |
| 158 scripts=scripts, | 158 scripts=scripts, |
| 159 data_files=data_files) | 159 data_files=data_files) |
| 160 | 160 |
| 161 if __name__ == '__main__': | 161 if __name__ == '__main__': |
| 162 os.chdir(os.path.dirname(__file__)) | 162 os.chdir(os.path.dirname(__file__) or '.') |
| 163 main() | 163 main() |
| 164 | 164 |
| 165 # vim: set filetype=python sts=4 sw=4 et si : | 165 # vim: set filetype=python sts=4 sw=4 et si : |
