mirror of https://github.com/morpheus65535/bazarr
Merge remote-tracking branch 'origin/development' into development
This commit is contained in:
commit
0b938524ee
|
@ -54,20 +54,23 @@ if not args.no_update:
|
||||||
except ImportError:
|
except ImportError:
|
||||||
logging.info('BAZARR unable to install requirements (pip not installed).')
|
logging.info('BAZARR unable to install requirements (pip not installed).')
|
||||||
else:
|
else:
|
||||||
logging.info('BAZARR installing requirements...')
|
if os.path.expanduser("~") == '/':
|
||||||
subprocess.call([sys.executable, '-m', 'pip', 'install', '--user', '-r',
|
logging.info('BAZARR unable to install requirements (user without home directory).')
|
||||||
os.path.join(os.path.dirname(__file__), '..', 'requirements.txt')],
|
|
||||||
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
|
||||||
logging.info('BAZARR requirements installed.')
|
|
||||||
try:
|
|
||||||
restart_file = io.open(os.path.join(args.config_dir, "bazarr.restart"), "w", encoding='UTF-8')
|
|
||||||
except Exception as e:
|
|
||||||
logging.error('BAZARR Cannot create bazarr.restart file: ' + repr(e))
|
|
||||||
else:
|
else:
|
||||||
logging.info('Bazarr is being restarted...')
|
logging.info('BAZARR installing requirements...')
|
||||||
restart_file.write(str(''))
|
subprocess.call([sys.executable, '-m', 'pip', 'install', '--user', '-r',
|
||||||
restart_file.close()
|
os.path.join(os.path.dirname(__file__), '..', 'requirements.txt')],
|
||||||
os._exit(0)
|
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||||
|
logging.info('BAZARR requirements installed.')
|
||||||
|
try:
|
||||||
|
restart_file = io.open(os.path.join(args.config_dir, "bazarr.restart"), "w", encoding='UTF-8')
|
||||||
|
except Exception as e:
|
||||||
|
logging.error('BAZARR Cannot create bazarr.restart file: ' + repr(e))
|
||||||
|
else:
|
||||||
|
logging.info('Bazarr is being restarted...')
|
||||||
|
restart_file.write(str(''))
|
||||||
|
restart_file.close()
|
||||||
|
os._exit(0)
|
||||||
|
|
||||||
# create random api_key if there's none in config.ini
|
# create random api_key if there's none in config.ini
|
||||||
if not settings.auth.apikey or settings.auth.apikey.startswith("b'"):
|
if not settings.auth.apikey or settings.auth.apikey.startswith("b'"):
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 8.2 KiB After Width: | Height: | Size: 2.6 KiB |
Binary file not shown.
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 4.6 KiB |
Binary file not shown.
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 3.8 KiB |
Loading…
Reference in New Issue