Skip to content
Snippets Groups Projects
Commit c63b3d92 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

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

parent c16c91ab
No related branches found
No related tags found
No related merge requests found
...@@ -20,7 +20,7 @@ import zc.buildout.easy_install ...@@ -20,7 +20,7 @@ import zc.buildout.easy_install
# Monkey patches the default template for script generation # Monkey patches the default template for script generation
zc.buildout.easy_install.script_template = \ zc.buildout.easy_install.script_template = \
zc.buildout.easy_install.script_header + """ zc.buildout.easy_install.script_header + """ -S
# Automatically generated on %(date)s # Automatically generated on %(date)s
'''Runs a specific user program''' '''Runs a specific user program'''
...@@ -30,7 +30,7 @@ import sys ...@@ -30,7 +30,7 @@ import sys
sys.path[0:0] = [ sys.path[0:0] = [
%%(path)s, %%(path)s,
] ]
import pkg_resources #re-initializes site properly import site #initializes site properly
%%(initialization)s %%(initialization)s
import %%(module_name)s import %%(module_name)s
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment