Ignore:
Timestamp:
21 Aug 2015, 14:19:06 (9 years ago)
Author:
uli
Message:

Use VAR_DIR as parameter. This is easier to recall.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/scripts.py

    r13207 r13208  
    2323TO_BE_GROKKED = ("waeup.kofa", "kofacustom.nigeria", "waeup.uniben")
    2424
    25 #: The data root from where we can look out for Data.fs, etc.
    26 #: We usually expect a `var/` directory in this root.
    27 INSTANCE_HOME = os.path.dirname(os.path.dirname(os.path.dirname(
    28     os.path.dirname(__file__))))
     25#: The data root from where we can look out for Data.fs, etc. This is
     26#: normally the `var/` dir of an instance.
     27VAR_DIR = os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(
     28    os.path.dirname(__file__)))), 'var')
    2929
    3030#: The name of the `University` instance in which we look for export
     
    5959    #         blob/master/src/ZODB/cross-database-references.txt
    6060    databases = {}
    61     root_dir = INSTANCE_HOME
    62     db_dir = os.path.join(root_dir, 'var', 'filestorage')
    63     blob_dir = os.path.join(root_dir, 'var', 'blobstorage')
     61    db_dir = os.path.join(VAR_DIR, 'filestorage')
     62    blob_dir = os.path.join(VAR_DIR, 'blobstorage')
    6463    db_path = os.path.join(db_dir, 'Data.fs')
    6564    async_db_path = os.path.join(db_dir, 'Data.async.fs')
Note: See TracChangeset for help on using the changeset viewer.