Skip to content

Commit

Permalink
Merge pull request pyinstaller#1177 from ixc/ixc/relative-symlinks
Browse files Browse the repository at this point in the history
Use relative symlinks when moving data files out of `MacOS` folder.
  • Loading branch information
htgoebel committed Jan 30, 2015
2 parents 707e2e6 + ba63e85 commit 4b60c46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PyInstaller/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -1619,7 +1619,7 @@ def assemble(self):
res_d = os.path.join(res_dir, d)
if os.path.isdir(abs_d) and d not in ignore_dirs:
shutil.move(abs_d, res_d)
os.symlink(res_d, abs_d)
os.symlink(os.path.relpath(res_d, os.path.dirname(abs_d)), abs_d)

return 1

Expand Down

0 comments on commit 4b60c46

Please sign in to comment.