Skip to content

Commit 1d25153

Browse files
committed
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.
1 parent ac18171 commit 1d25153

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def main():
159159
data_files=data_files)
160160

161161
if __name__ == '__main__':
162-
os.chdir(os.path.dirname(__file__))
162+
os.chdir(os.path.dirname(__file__) or '.')
163163
main()
164164

165165
# vim: set filetype=python sts=4 sw=4 et si :

0 commit comments

Comments
 (0)