Skip to content

Commit

Permalink
Postpone site module loading to be able to override namespaced packag…
Browse files Browse the repository at this point in the history
…es as well
  • Loading branch information
anjos committed Jan 30, 2015
1 parent c16c91a commit c63b3d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bob/buildout/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

# Monkey patches the default template for script generation
zc.buildout.easy_install.script_template = \
zc.buildout.easy_install.script_header + """
zc.buildout.easy_install.script_header + """ -S
# Automatically generated on %(date)s
'''Runs a specific user program'''
Expand All @@ -30,7 +30,7 @@
sys.path[0:0] = [
%%(path)s,
]
import pkg_resources #re-initializes site properly
import site #initializes site properly
%%(initialization)s
import %%(module_name)s
Expand Down

0 comments on commit c63b3d9

Please sign in to comment.