Browse Source

Bugfix in MONOSITE mode

Yann Weber 8 years ago
parent
commit
6fc931f52e
2 changed files with 3 additions and 1 deletions
  1. 1
    1
      Makefile.am
  2. 2
    0
      lodel/context.py

+ 1
- 1
Makefile.am View File

27
 
27
 
28
 do_subst = sed -e 's,\[@\]INSTALLMODEL_DIR\[@\],$(install_model_dir),g' 
28
 do_subst = sed -e 's,\[@\]INSTALLMODEL_DIR\[@\],$(install_model_dir),g' 
29
 
29
 
30
-runtest: runtest.sh
30
+runtest: ./runtest.sh
31
 	$(do_subst) < $(srcdir)/runtest.sh > runtest
31
 	$(do_subst) < $(srcdir)/runtest.sh > runtest
32
 	chmod +x runtest
32
 	chmod +x runtest
33
 
33
 

+ 2
- 0
lodel/context.py View File

123
                 self.__class__._current = self.__class__._contexts = self
123
                 self.__class__._current = self.__class__._contexts = self
124
                 self.__pkg_name = 'lodel'
124
                 self.__pkg_name = 'lodel'
125
                 self.__package = lodel
125
                 self.__package = lodel
126
+                self.__instance_path = os.getcwd()
126
                 return
127
                 return
127
         else:
128
         else:
128
             #Multisite instanciation
129
             #Multisite instanciation
145
                 """
146
                 """
146
                 warnings.warn("It can be a really BAD idea to create a \
147
                 warnings.warn("It can be a really BAD idea to create a \
147
 a context without a path......")
148
 a context without a path......")
149
+                self.__instance_path = None
148
             else:
150
             else:
149
                 self.__instance_path = os.path.realpath(instance_path)
151
                 self.__instance_path = os.path.realpath(instance_path)
150
             #Importing the site package to trigger its creation
152
             #Importing the site package to trigger its creation

Loading…
Cancel
Save