From b0a18addb3cfa8b0934f8584578aebf859f77acc Mon Sep 17 00:00:00 2001 From: emdee Date: Wed, 16 Nov 2022 07:56:28 +0000 Subject: [PATCH] add __main__.py --- .gitignore | 16 ++++++++++++++++ __init__.py | 0 __main__.py | 16 ++++++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 .gitignore create mode 100644 __init__.py create mode 100644 __main__.py diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f76f9fb --- /dev/null +++ b/.gitignore @@ -0,0 +1,16 @@ +*.pyc +*.pyo +.idea +*~ +*.iml +*.so +*.log +build +*.spec +dist +/*.egg-info +/*.egg +html +.cache +*.db +*.junk diff --git a/__init__.py b/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/__main__.py b/__main__.py new file mode 100644 index 0000000..440bca5 --- /dev/null +++ b/__main__.py @@ -0,0 +1,16 @@ +#!/usr/local/bin/python3.sh +# -*-mode: python; indent-tabs-mode: nil; py-indent-offset: 4; coding: utf-8 -* + +from qasync_phantompy import iMain + +try: + from support_phantompy import vsetup_logging + d = int(os.environ.get('DEBUG', 0)) + if d > 0: + vsetup_logging(10, stream=sys.stderr) + else: + vsetup_logging(20, stream=sys.stderr) + vsetup_logging(log_level, logfile='', stream=sys.stderr) +except: pass + +iMain(sys.argv[1:], bgui=False)