Commit ad854e9b authored by André Anjos's avatar André Anjos 💬

Merge branch 'revert-issue-24' into 'master'

[script] Revert fixes done to tackle issue #15

See merge request !40
parents 7b59ec12 f58c0f1a
Pipeline #40496 passed with stages
in 3 minutes and 19 seconds
......@@ -31,17 +31,8 @@ sys.path[0:0] = [
%%(path)s,
]
#see: http://bugs.python.org/issue30167
if sys.version_info[:2] >= (3, 6) and \
sys.modules['__main__'].__loader__ is not None:
_hack = str(sys.modules['__main__'].__loader__.__module__)
sys.modules['__main__'].__loader__.__module__ += '_'
import site #initializes site properly
site.main() #this is required for python>=3.4
if sys.version_info[:2] >= (3, 6) and \
sys.modules['__main__'].__loader__ is not None:
#restores original value
sys.modules['__main__'].__loader__.__module__ = _hack
import pkg_resources #initializes virtualenvs properly
%%(initialization)s
import %%(module_name)s
......
Markdown is supported
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