Commit c63b3d92 authored by André Anjos's avatar André Anjos 💬
Browse files

Postpone site module loading to be able to override namespaced packages as well

parent c16c91ab
......@@ -20,7 +20,7 @@ import zc.buildout.easy_install
# 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'''
......@@ -30,7 +30,7 @@ import sys
sys.path[0:0] = [
%%(path)s,
]
import pkg_resources #re-initializes site properly
import site #initializes site properly
%%(initialization)s
import %%(module_name)s
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment