-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
26 lines (19 loc) · 730 Bytes
/
Copy path__init__.py
File metadata and controls
26 lines (19 loc) · 730 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File: __init__.py
# File Created: Tuesday, 2nd February 2021 9:42:50 pm
# Author: Steven Atkinson (steven@atkinson.mn)
# Hack to recover graceful shutdowns in Windows.
# This has to happen ASAP
# See:
# https://github.com/sdatkinson/neural-amp-modeler/issues/105
# https://stackoverflow.com/a/44822794
def _ensure_graceful_shutdowns():
import os
if os.name == "nt": # OS is Windows
os.environ["FOR_DISABLE_CONSOLE_CTRL_HANDLER"] = "1"
_ensure_graceful_shutdowns()
from ._version import __version__ # Must be before models or else circular
from . import _core # noqa F401
from . import data # noqa F401
from . import models # noqa F401
from . import util # noqa F401
from . import train # noqa F401