use local tor if no registed version can be found

This commit is contained in:
j 2016-01-17 12:28:55 +05:30
commit 021c418622
2 changed files with 9 additions and 3 deletions

View file

@ -36,7 +36,9 @@ class Install(Thread):
from OpenSSL.SSL import TLSv1_2_METHOD
except:
print("To run Open Media Library on versions of Ubuntu before 15.10, you need to manually update pyOpenSSL.")
print("To install the current version of pyOpenSSL, run:\n\tsudo apt-get install python3-pip python3-dev libffi-dev libssl-dev\n\tsudo pip3 install -U pyOpenSSL")
print("To install the current version of pyOpenSSL, run:")
print("\tsudo apt-get install python3-pip python3-dev libffi-dev libssl-dev libevent-2.0-5")
print("\tsudo pip3 install -U pyOpenSSL")
self.failed = True
return
apt_packages = ''
@ -167,5 +169,5 @@ if __name__ == '__main__':
install = Install(target)
install.join()
if not install.failed:
print("To launch Open Media Library, run: %s open"%os.path.join(target, 'ctl'))
print("You can launch Open Media Library from the menu or run: %s open"%os.path.join(target, 'ctl'))
#subprocess.Popen([os.path.join(target, 'ctl'), 'open'])