Bladeren bron

Bugfix in MONOSITE mode

Yann Weber 8 jaren geleden
bovenliggende
commit
6fc931f52e
2 gewijzigde bestanden met toevoegingen van 3 en 1 verwijderingen
  1. 1
    1
      Makefile.am
  2. 2
    0
      lodel/context.py

+ 1
- 1
Makefile.am Bestand weergeven

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

+ 2
- 0
lodel/context.py Bestand weergeven

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

Loading…
Annuleren
Opslaan