Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 79c60cb

Browse files
committed
Merge pull request #1 from mdboom/symlinks
Create the symlink without using chdir.
2 parents a2b935c + 5763d5a commit 79c60cb

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

setupegg.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,11 @@
99
# Setupegg assumes the install tree and source tree are exactly the same. Since
1010
# this is not the case, symlink the correct dateutil dir depending on which
1111
# version of python is used
12-
os.chdir('lib')
13-
if not os.path.isdir('dateutil'):
12+
if not os.path.isdir('lib/dateutil'):
1413
if sys.version_info[0] >= 3:
15-
os.symlink('dateutil_py3', 'dateutil')
14+
os.symlink('dateutil_py3', 'lib/dateutil')
1615
else:
17-
os.symlink('dateutil_py2', 'dateutil')
18-
os.chdir('..')
16+
os.symlink('dateutil_py2', 'lib/dateutil')
1917

2018
execfile('setup.py',
2119
{'additional_params' :

0 commit comments

Comments
 (0)