Commit 9648ae70 authored by Jerome Flesch's avatar Jerome Flesch

GTK: launcher: really fix it when frozen ...

Signed-off-by: Jerome Flesch's avatarJerome Flesch <jflesch@openpaper.work>
parent 88c02e88
Pipeline #99131 passed with stage
in 70 minutes and 15 seconds
......@@ -24,14 +24,12 @@ import sys
if __name__ == "__main__":
if "python" not in sys.executable or '__file__' not in globals():
filepath = sys.executable
data_base_path = os.path.dirname(os.path.realpath(sys.executable))
else:
filepath = __file__
if filepath is not None:
data_base_path = os.path.join(
os.path.dirname(os.path.realpath(__file__)), ".."
)
os.chdir(data_base_path)
os.chdir(data_base_path)
from paperwork.paperwork import main
main()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment