phantompy/phantompy/__main__.py

21 lines
534 B
Python
Raw Normal View History

2022-11-16 07:56:28 +00:00
#!/usr/local/bin/python3.sh
# -*-mode: python; indent-tabs-mode: nil; py-indent-offset: 4; coding: utf-8 -*
2022-11-17 08:07:23 +00:00
from __future__ import absolute_import
import sys
from .qasync_phantompy import iMain
2022-11-16 07:56:28 +00:00
try:
2022-11-17 08:07:23 +00:00
from .support_phantompy import vsetup_logging
2022-11-16 07:56:28 +00:00
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
2022-11-16 18:33:59 +00:00
if __name__ == '__main__':
2022-11-17 08:07:23 +00:00
iMain(sys.argv[1:])