• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

emcek / dcspy / 9231915424

25 May 2024 01:35AM UTC coverage: 96.349% (+0.02%) from 96.326%
9231915424

Pull #313

github

emcek
upate chnagelog
Pull Request #313: F-4E Phantom II

37 of 39 new or added lines in 6 files covered. (94.87%)

12 existing lines in 1 file now uncovered.

2032 of 2109 relevant lines covered (96.35%)

0.96 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/dcspy/run.py
1
import signal
×
2
import sys
×
3
from argparse import Namespace
×
4
from logging import getLogger
×
5
from os import environ, unlink
×
6
from pathlib import Path
×
7
from tempfile import gettempdir
×
8

9
from PySide6.QtWidgets import QApplication
×
10

11
from dcspy import get_config_yaml_item
×
12
from dcspy.qt_gui import DcsPyQtGui
×
13

14
LOG = getLogger(__name__)
×
NEW
15
__version__ = '3.4.2'
×
16

17

18
def run(cli_args: Namespace = Namespace()) -> None:
×
19
    """Run DCSpy Qt6 GUI."""
20
    signal.signal(signal.SIGTERM, signal.SIG_DFL)
×
21
    signal.signal(signal.SIGINT, signal.SIG_DFL)
×
22
    app = QApplication(sys.argv)
×
23
    app.setStyle('fusion')
×
24

25
    try:
×
26
        window = DcsPyQtGui(cli_args)
×
27
        if get_config_yaml_item('show_gui', True):
×
28
            window.show()
×
29
        unlink(Path(gettempdir()) / f'onefile_{environ["NUITKA_ONEFILE_PARENT"]}_splash_feedback.tmp')
×
30
        app.aboutToQuit.connect(window.event_set)
×
31
    except (KeyError, FileNotFoundError):
×
32
        pass
×
33
    except Exception as exp:
×
34
        LOG.exception(f'Critical error: {exp}')
×
35
    finally:
36
        sys.exit(app.exec())
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc