|
@@ -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(), {
|