pandoralocal

This commit is contained in:
j 2011-12-22 17:50:47 +05:30
commit 47182a28d6
10 changed files with 332 additions and 0 deletions

25
bin/pandoralocal Executable file
View file

@ -0,0 +1,25 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
# GPL 2008
import os
import sys
from glob import glob
from optparse import OptionParser
root = os.path.join(os.path.abspath(os.path.dirname(__file__)), '..')
if os.path.exists(os.path.join(root, 'pandoralocal')):
sys.path.insert(0, root)
import pandoralocal
if __name__ == '__main__':
parser = OptionParser()
parser.add_option('-c', '--config', dest='config', help='config file', default='config.json')
(opts, args) = parser.parse_args()
if None in (opts.config, ):
parser.print_help()
sys.exit()
pandoralocal.main(opts.config)