mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-24 16:52:06 +00:00
20 lines
No EOL
547 B
Python
20 lines
No EOL
547 B
Python
import os
|
|
import sys
|
|
import getopt
|
|
|
|
config_dir = os.path.join(os.path.dirname(__file__), 'data/')
|
|
no_update = False
|
|
|
|
try:
|
|
opts, args = getopt.getopt(sys.argv[1:],"h:",["no-update", "config="])
|
|
except getopt.GetoptError:
|
|
print 'bazarr.py -h --no-update --config <config_directory>'
|
|
sys.exit(2)
|
|
for opt, arg in opts:
|
|
if opt == '-h':
|
|
print 'bazarr.py -h --no-update --config <config_directory>'
|
|
sys.exit()
|
|
elif opt in ("--no-update"):
|
|
no_update = True
|
|
elif opt in ("--config"):
|
|
config_dir = arg |