Skip to content

Commit

Permalink
Don't error out if site.py is missing.
Browse files Browse the repository at this point in the history
  • Loading branch information
rfk committed Oct 29, 2012
1 parent 2556cea commit fa69d3d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion esky/bdist_esky/f_py2app.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,11 @@ def copy_to_bootstrap_env(src,dst=None):
copy_to_bootstrap_env(os.path.join(dynload,nm))
copy_to_bootstrap_env("Contents/Resources/__error__.sh")
copy_to_bootstrap_env("Contents/Resources/__boot__.py")
copy_to_bootstrap_env("Contents/Resources/site.pyc")
for nm in ("site.py", "site.py"):
try:
copy_to_bootstrap_env("Contents/Resources/" + nm)
except EnvironmentError:
pass
# Copy the bootstrapping code into the __boot__.py file.
bsdir = dist.bootstrap_dir
with open(bsdir+"/Contents/Resources/__boot__.py","wt") as f:
Expand Down

0 comments on commit fa69d3d

Please sign in to comment.