summaryrefslogtreecommitdiff
path: root/portato/__init__.py
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2010-05-11 19:34:58 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2010-05-11 19:34:58 +0200
commit264fef834ab10fc672eb72bbf7da822e2a93a578 (patch)
treea7bcce1a09755e7dde3afe825baa15d849959ec0 /portato/__init__.py
parentabc4db5913bebc4d16b22d8856dba16c695a1477 (diff)
parent8c016e8ace989e3e1d0dadd7e54e61849341168f (diff)
downloadportato-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/__init__.py')
-rw-r--r--portato/__init__.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/portato/__init__.py b/portato/__init__.py
index ed5c94b..b4ea214 100644
--- a/portato/__init__.py
+++ b/portato/__init__.py
@@ -17,7 +17,7 @@ import sys, os
from optparse import OptionParser, SUPPRESS_HELP
from .log import start as logstart
-from .constants import LOCALE_DIR, APP, VERSION, REVISION
+from .constants import LOCALE_DIR, APP, VERSION, REVISION, PLUGIN_DIR
from .helper import debug, info, error
# set better version info
@@ -53,6 +53,9 @@ def get_parser (use_ = False):
parser.add_option("-F", "--no-fork", action = "store_true", dest = "nofork", default = False,
help = _("do not fork off as root"))
+ parser.add_option("--plugin-dir", action = "store_true", dest = "pdir", default = False,
+ help = _("print the directory the plugins are located in"))
+
return parser
def _sub_start ():
@@ -71,6 +74,11 @@ def start():
# run parser
(options, args) = get_parser().parse_args()
+ # plugin dir
+ if options.pdir:
+ print PLUGIN_DIR
+ return
+
if options.nofork or os.getuid() == 0: # start GUI
# close listener at exit