Mercurial > p > roundup > code
comparison setup.py @ 4894:1484893daeff
Correctly set working directory in setup.py
The setup.py script assumes that it is being run from the top-level
project directory with all filenames being relative to that location.
This may not always be the case, so we need to ensure that the working
directory is correctly set no matter where the script is invoked from.
| author | John Kristensen <john@jerrykan.com> |
|---|---|
| date | Wed, 07 May 2014 13:01:55 +1000 |
| parents | 6ba2d471d76b |
| children | 756ff1c2ee41 |
comparison
equal
deleted
inserted
replaced
| 4893:5dbeea79a3db | 4894:1484893daeff |
|---|---|
| 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 main() | 163 main() |
| 163 | 164 |
| 164 # vim: set filetype=python sts=4 sw=4 et si : | 165 # vim: set filetype=python sts=4 sw=4 et si : |
