add __main__.py
This commit is contained in:
parent
1d4c214ac3
commit
b0a18addb3
16
.gitignore
vendored
Normal file
16
.gitignore
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
*.pyc
|
||||||
|
*.pyo
|
||||||
|
.idea
|
||||||
|
*~
|
||||||
|
*.iml
|
||||||
|
*.so
|
||||||
|
*.log
|
||||||
|
build
|
||||||
|
*.spec
|
||||||
|
dist
|
||||||
|
/*.egg-info
|
||||||
|
/*.egg
|
||||||
|
html
|
||||||
|
.cache
|
||||||
|
*.db
|
||||||
|
*.junk
|
0
__init__.py
Normal file
0
__init__.py
Normal file
16
__main__.py
Normal file
16
__main__.py
Normal file
@ -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)
|
Loading…
Reference in New Issue
Block a user