From 54291918bfc7bc72878009bd57fd266ecc0c9789 Mon Sep 17 00:00:00 2001 From: Biryuzovye Kleshni Date: Sat, 30 Jun 2018 09:21:39 +0000 Subject: [PATCH] Fix for running after installation --- src/bitmessagemain.py | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/bitmessagemain.py b/src/bitmessagemain.py index 456d870f..507ddf14 100755 --- a/src/bitmessagemain.py +++ b/src/bitmessagemain.py @@ -383,8 +383,14 @@ def main(): # See "workprover/Readme.md" -import pyelliptic.openssl +import os +import sys +app_dir = os.path.dirname(os.path.abspath(__file__)) +os.chdir(app_dir) +sys.path.insert(0, app_dir) + +import pyelliptic.openssl import workprover.dumbsolver workprover.dumbsolver.libcrypto = pyelliptic.openssl.OpenSSL._lib @@ -394,14 +400,6 @@ if __name__ == "__main__": multiprocessing.freeze_support() - import os - import sys - - app_dir = os.path.dirname(os.path.abspath(__file__)) - os.chdir(app_dir) - sys.path.insert(0, app_dir) - - import depends depends.check_dependencies()