mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-01-11 09:17:47 +08:00
Check for user home directory while installing requirements.
Fix infinite rebooting, if user doesn't have home directory.
This commit is contained in:
parent
216d10a90a
commit
88d1a63b1c
1 changed files with 16 additions and 13 deletions
|
@ -53,6 +53,9 @@ if not args.no_update:
|
||||||
import pip
|
import pip
|
||||||
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:
|
||||||
|
if os.path.expanduser("~") == '/':
|
||||||
|
logging.info('BAZARR unable to install requirements (user without home directory).')
|
||||||
else:
|
else:
|
||||||
logging.info('BAZARR installing requirements...')
|
logging.info('BAZARR installing requirements...')
|
||||||
subprocess.call([sys.executable, '-m', 'pip', 'install', '--user', '-r',
|
subprocess.call([sys.executable, '-m', 'pip', 'install', '--user', '-r',
|
||||||
|
|
Loading…
Reference in a new issue