-
Notifications
You must be signed in to change notification settings - Fork 9
/
run_omnitool.py
30 lines (24 loc) · 1.57 KB
/
run_omnitool.py
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
27
28
29
#! python3
# coding=utf-8
import runpy
from multiprocessing import freeze_support, set_start_method
import sys
if __name__ == "__main__":
freeze_support()
set_start_method("spawn") # Prevents X11 crash on Linux - properly separates pygame internals
try:
text = """ ██████╗ ███╗ ███╗███╗ ██╗██╗████████╗ ██████╗ ██████╗ ██╗
██╔═══██╗████╗ ████║████╗ ██║██║╚══██╔══╝██╔═══██╗██╔═══██╗██║
██║ ██║██╔████╔██║██╔██╗ ██║██║ ██║ ██║ ██║██║ ██║██║
██║ ██║██║╚██╔╝██║██║╚██╗██║██║ ██║ ██║ ██║██║ ██║██║
╚██████╔╝██║ ╚═╝ ██║██║ ╚████║██║ ██║ ╚██████╔╝╚██████╔╝███████╗
╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═══╝╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚══════╝"""
print(text)
except UnicodeEncodeError:
pass
if "worldrender" in sys.argv:
runpy.run_module('omnitool.render', run_name="__main__")
else:
runpy.run_module('omnitool', run_name="__main__")
if False:
import omnitool # freeze hook