Changeset 13191 for main/waeup.uniben/trunk/src/waeup
- Timestamp:
- 9 Aug 2015, 22:02:16 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/scripts.py
r13190 r13191 18 18 19 19 20 #: Packages that have to be 'grokked' in order to register exporters 21 #: and everything else. 22 #: The order of these packages is usually relevant. 23 TO_BE_GROKKED = ("waeup.kofa", "kofacustom.nigeria", "waeup.uniben") 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__)))) 29 20 30 21 31 def grok_bases(): 22 32 """Grok packages not already grokked. 23 33 """ 24 for pkg_name in ("waeup.kofa", "kofacustom.nigeria", "waeup.uniben"):34 for pkg_name in TO_BE_GROKKED: 25 35 if grokked.get(pkg_name, False): 26 36 continue … … 42 52 # https://github.com/zopefoundation/ZODB/blob/master/src/ZODB/cross-database-references.txt 43 53 databases = {} 44 root_dir = os.path.dirname(os.path.dirname(os.path.dirname( 45 os.path.dirname(__file__)))) 54 root_dir = INSTANCE_HOME 46 55 db_dir = os.path.join(root_dir, 'var', 'filestorage') 47 56 blob_dir = os.path.join(root_dir, 'var', 'blobstorage')
Note: See TracChangeset for help on using the changeset viewer.