Browse Source

Correction of static url

prieto 8 years ago
parent
commit
5bbcdbbdcb
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      progs/slim/slim.py

+ 2
- 1
progs/slim/slim.py View File

17
 logging.basicConfig(level=logging.INFO)
17
 logging.basicConfig(level=logging.INFO)
18
 
18
 
19
 INSTANCES_ABSPATH="/tmp/lodel2_instances"
19
 INSTANCES_ABSPATH="/tmp/lodel2_instances"
20
+LODEL2_INSTALLDIR="/usr/lib/python3/dist-packages"
20
 CONFFILE='conf.d/lodel2.ini'
21
 CONFFILE='conf.d/lodel2.ini'
21
 try:
22
 try:
22
     STORE_FILE = os.path.join("[@]SLIM_VAR_DIR[@]", 'slim_instances.json')
23
     STORE_FILE = os.path.join("[@]SLIM_VAR_DIR[@]", 'slim_instances.json')
396
     include uwsgi_params;
397
     include uwsgi_params;
397
     
398
     
398
     location /static/ {
399
     location /static/ {
399
-        alias /lodel2/plugins/webui/templates/;
400
+        alias """ + LODEL2_INSTALLDIR + """/lodel/plugins/webui/templates/;
400
     }
401
     }
401
 
402
 
402
 """
403
 """

Loading…
Cancel
Save