Fix for running after installation
This commit is contained in:
parent
0c3ce79ea4
commit
54291918bf
|
@ -383,8 +383,14 @@ def main():
|
||||||
|
|
||||||
# See "workprover/Readme.md"
|
# 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
|
import workprover.dumbsolver
|
||||||
|
|
||||||
workprover.dumbsolver.libcrypto = pyelliptic.openssl.OpenSSL._lib
|
workprover.dumbsolver.libcrypto = pyelliptic.openssl.OpenSSL._lib
|
||||||
|
@ -394,14 +400,6 @@ if __name__ == "__main__":
|
||||||
|
|
||||||
multiprocessing.freeze_support()
|
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
|
import depends
|
||||||
depends.check_dependencies()
|
depends.check_dependencies()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user