mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 12:11:33 -06:00
Add versioning to MSI installer.
Also close console window when not using CLI. Remove deployment section of appveyor.yml for the time being.
This commit is contained in:
9
Utils.py
9
Utils.py
@@ -62,3 +62,12 @@ def open_file(filename):
|
||||
else:
|
||||
open_Command = 'open' if sys.platform == 'darwin' else 'xdg-open'
|
||||
subprocess.call([open_command, filename])
|
||||
|
||||
def close_console():
|
||||
if sys.platform == 'win32':
|
||||
#windows
|
||||
import ctypes.wintypes
|
||||
try:
|
||||
ctypes.windll.kernel32.FreeConsole()
|
||||
except:
|
||||
pass
|
||||
|
Reference in New Issue
Block a user