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
         LodelFatalError('Bad argument given to site_load(). This really \
139
         LodelFatalError('Bad argument given to site_load(). This really \
140
 sux !')
140
 sux !')
141
     #Determining uniq sitename from data_path
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
     ctx_name = os.path.basename(data_path)
143
     ctx_name = os.path.basename(data_path)
144
     if not os.path.exists(data_path) or not os.path.isdir(data_path):
144
     if not os.path.exists(data_path) or not os.path.isdir(data_path):
145
         LodelContext.expose_modules(globals(), {
145
         LodelContext.expose_modules(globals(), {

Loading…
Cancel
Save