Fix for running after installation
This commit is contained in:
parent
0c3ce79ea4
commit
54291918bf
|
@ -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()
|
||||
|
||||
|
|
Reference in New Issue
Block a user