Design Pattern Examples
Overview of object-oriented design patterns
__main__.py
Go to the documentation of this file.
5
6# The following is used during debugging; VS2022 does not allow for launching
7# Python package in such a way as to set the package name, which allows relative
8# import to work. The work-around is to force the package name here. Then
9# the debugger can launch __main__.py with a working directory set to "../../".
10__package__ = "python.DesignPatternExamples_python" if not __package__ else __package__
11
12import sys
13from . import main
14from .enablevtmode import EnableVTMode
15
16sys.exit(EnableVTMode(main))