diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2010-05-11 19:34:58 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2010-05-11 19:34:58 +0200 |
commit | 264fef834ab10fc672eb72bbf7da822e2a93a578 (patch) | |
tree | a7bcce1a09755e7dde3afe825baa15d849959ec0 /portato/constants.py | |
parent | abc4db5913bebc4d16b22d8856dba16c695a1477 (diff) | |
parent | 8c016e8ace989e3e1d0dadd7e54e61849341168f (diff) | |
download | portato-264fef834ab10fc672eb72bbf7da822e2a93a578.tar.gz portato-264fef834ab10fc672eb72bbf7da822e2a93a578.tar.bz2 portato-264fef834ab10fc672eb72bbf7da822e2a93a578.zip |
Pre-release merge
Merge branch '0.14'
* 0.14:
Fix release script pathes
Add '--plugin-dir' option
Add a README message to the release
Add a release file
Improve setup.py for release script
Improve constants.py for release script
Diffstat (limited to 'portato/constants.py')
-rw-r--r-- | portato/constants.py | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/portato/constants.py b/portato/constants.py index 059017e..5faefe1 100644 --- a/portato/constants.py +++ b/portato/constants.py @@ -26,13 +26,16 @@ These should be set during the installation. @var CONFIG_LOCATION: L{CONFIG_DIR} plus name of the config file. @type CONFIG_LOCATION: string +@var ROOT_DIR: Overall root -- normally just '/'. +@type ROOT_DIR: string +@var DATA_DIR: Directory which contains all shared files. +@type DATA_DIR: string + @var ICON_DIR: directory containing the icons @type ICON_DIR: string @var APP_ICON: the path of the application icon @type APP_ICON: string -@var DATA_DIR: Directory which contains all shared files. -@type DATA_DIR: string @var LOCALE_DIR: the path to the directory where the locale files (*.mo) are stored. @type LOCALE_DIR: string @var PLUGIN_DIR: Directory containing the plugin xmls. @@ -54,8 +57,11 @@ from os.path import join as pjoin if os.getuid() == 0: os.environ["HOME"] = "/root" +ROOT_DIR = "" +DATA_DIR = "./" + # icons -ICON_DIR = "icons/" +ICON_DIR = pjoin(ROOT_DIR, DATA_DIR, "icons/") APP_ICON = pjoin(ICON_DIR, "portato-icon.png") # general @@ -64,14 +70,13 @@ VERSION = "9999" HOME = os.environ["HOME"] # config -CONFIG_DIR = "etc/" +CONFIG_DIR = pjoin(ROOT_DIR, "etc/") CONFIG_LOCATION = pjoin(CONFIG_DIR, "portato.cfg") SESSION_DIR = pjoin(os.environ["HOME"], ".portato") # misc dirs -DATA_DIR = "./" LOCALE_DIR = "i18n/" -PLUGIN_DIR = pjoin(DATA_DIR, "plugins/") +PLUGIN_DIR = pjoin(ROOT_DIR, DATA_DIR, "plugins/") SETTINGS_DIR = pjoin(HOME, "."+APP) TEMPLATE_DIR = "portato/gui/templates/" |