WizardKit/scripts/wk/__init__.py
2Shirt ff4e371b32
Added get_exception() and try_and_print()
* try_and_print needs the format_..() functions finished before it can be used
* Raised minimum Python version to 3.7
  * Probably could go with 3.6 but meh
2019-08-09 19:00:01 -06:00

34 lines
604 B
Python

'''WizardKit: wk module init'''
# vim: sts=2 sw=2 ts=2
import sys
from wk import cfg
from wk import exe
from wk import hw
from wk import io
from wk import kit
from wk import log
from wk import net
from wk import os
from wk import std
from wk import sw
# Check env
if sys.version_info < (3, 7):
# Unsupported
raise RuntimeError(
'This package is unsupported on Python {major}.{minor}'.format(
**sys.version_info,
))
# Init
try:
log.start()
except UserWarning as err:
std.print_warning(err)
if __name__ == '__main__':
print("This file is not meant to be called directly.")