Changeset 13208 for main/waeup.uniben/trunk
- Timestamp:
- 21 Aug 2015, 14:19:06 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/scripts.py
r13207 r13208 23 23 TO_BE_GROKKED = ("waeup.kofa", "kofacustom.nigeria", "waeup.uniben") 24 24 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. 27 VAR_DIR = os.path.join(os.path.dirname(os.path.dirname(os.path.dirname( 28 os.path.dirname(__file__)))), 'var') 29 29 30 30 #: The name of the `University` instance in which we look for export … … 59 59 # blob/master/src/ZODB/cross-database-references.txt 60 60 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') 64 63 db_path = os.path.join(db_dir, 'Data.fs') 65 64 async_db_path = os.path.join(db_dir, 'Data.async.fs')
Note: See TracChangeset for help on using the changeset viewer.