Browse Source

Bugfix in name guess in bootstrap module

Yann Weber 7 years ago
parent
commit
773f6cdd06
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      lodel/bootstrap.py

+ 1
- 1
lodel/bootstrap.py View File

@@ -139,7 +139,7 @@ def site_preload(data_path, confdir_basename = 'conf.d', lodelsites_instance = F
139 139
         LodelFatalError('Bad argument given to site_load(). This really \
140 140
 sux !')
141 141
     #Determining uniq sitename from data_path
142
-    data_path = data_path.rstrip('/') #else basename returns ''
142
+    data_path = os.path.dirname(data_path).rstrip('/') #else basename returns ''
143 143
     ctx_name = os.path.basename(data_path)
144 144
     if not os.path.exists(data_path) or not os.path.isdir(data_path):
145 145
         LodelContext.expose_modules(globals(), {

Loading…
Cancel
Save