Commit be66af94 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 9f6aa491
...@@ -9,14 +9,8 @@ from slapos.recipe.template import jinja2_template ...@@ -9,14 +9,8 @@ from slapos.recipe.template import jinja2_template
import json, copy, sys, os, pprint, glob, types import json, copy, sys, os, pprint, glob, types
# ~ import xbuildout (see instance.cfg:activate-eggs) sys.path.insert(0, './ru')
def readfile(path): import xbuildout
with open(path) as f:
return f.read()
xbuildout = types.ModuleType('xbuildout')
exec(readfile('ru/xbuildout.py'), xbuildout.__dict__)
assert 'xbuildout' not in sys.modules
sys.modules['xbuildout'] = xbuildout
B = xbuildout.encode B = xbuildout.encode
......
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