add some backend/selectfile ui and api calls
This commit is contained in:
parent
5de2461eb6
commit
74eed215b5
9 changed files with 623 additions and 10 deletions
|
|
@ -5,7 +5,6 @@
|
|||
|
||||
import os
|
||||
import sys
|
||||
from glob import glob
|
||||
from optparse import OptionParser
|
||||
|
||||
root = os.path.join(os.path.abspath(os.path.dirname(__file__)), '..')
|
||||
|
|
@ -16,10 +15,10 @@ import pandoralocal
|
|||
|
||||
if __name__ == '__main__':
|
||||
parser = OptionParser()
|
||||
parser.add_option('-c', '--config', dest='config', help='config file', default='config.json')
|
||||
parser.add_option('-d', '--db', dest='db', help='settings db', default=pandoralocal.db_path())
|
||||
(opts, args) = parser.parse_args()
|
||||
|
||||
if None in (opts.config, ):
|
||||
if None in (opts.db, ):
|
||||
parser.print_help()
|
||||
sys.exit()
|
||||
pandoralocal.main(opts.config)
|
||||
pandoralocal.main(opts.db)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue