1
0
Fork 0
mirror of https://github.com/yweber/lodel2.git synced 2025-10-31 19:49:02 +01:00

Bugfix in MONOSITE mode

This commit is contained in:
Yann 2016-11-25 16:18:27 +01:00
commit 6fc931f52e
2 changed files with 3 additions and 1 deletions

View file

@ -27,7 +27,7 @@ doc_graphviz:
do_subst = sed -e 's,\[@\]INSTALLMODEL_DIR\[@\],$(install_model_dir),g'
runtest: runtest.sh
runtest: ./runtest.sh
$(do_subst) < $(srcdir)/runtest.sh > runtest
chmod +x runtest

View file

@ -123,6 +123,7 @@ site_id set to None when we are in MULTISITE beahavior")
self.__class__._current = self.__class__._contexts = self
self.__pkg_name = 'lodel'
self.__package = lodel
self.__instance_path = os.getcwd()
return
else:
#Multisite instanciation
@ -145,6 +146,7 @@ instance path")
"""
warnings.warn("It can be a really BAD idea to create a \
a context without a path......")
self.__instance_path = None
else:
self.__instance_path = os.path.realpath(instance_path)
#Importing the site package to trigger its creation