fail
This commit is contained in:
parent
c33f580edf
commit
0e71dcd9a8
5 changed files with 53 additions and 41 deletions
9
install
9
install
|
|
@ -19,6 +19,7 @@ class Install(Thread):
|
|||
|
||||
base_url = 'http://downloads.openmedialibrary.com/'
|
||||
status = {}
|
||||
failed = False
|
||||
|
||||
def __init__(self, target):
|
||||
self.target = target
|
||||
|
|
@ -72,8 +73,9 @@ class Install(Thread):
|
|||
print('You need to install Pillow, lxml and pyOpenSSL\ni.e. sudo pip3 install pillow lxml pyOpenSSL')
|
||||
if 'poppler' in apt_packages:
|
||||
print('You need to install pdftocairo (part of poppler-utils)')
|
||||
input("After installing those packages, press Enter to continue...")
|
||||
sys.exit(1)
|
||||
input("After installing those packages, run install again")
|
||||
self.failed = True
|
||||
return
|
||||
target = self.target
|
||||
target = os.path.normpath(os.path.join(os.path.abspath(target)))
|
||||
if not os.path.exists(target):
|
||||
|
|
@ -161,4 +163,5 @@ if __name__ == '__main__':
|
|||
|
||||
install = Install(target)
|
||||
install.join()
|
||||
subprocess.call([os.path.join(target, 'ctl'), 'open'])
|
||||
if not install.failed:
|
||||
subprocess.call([os.path.join(target, 'ctl'), 'open'])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue