mirror of
https://github.com/frozenpandaman/s3s.git
synced 2026-09-28 12:16:26 -05:00
error workaround for older python versions (#33)
This commit is contained in:
3
s3s.py
3
s3s.py
@@ -16,7 +16,8 @@ A_VERSION = "0.1.4"
|
||||
DEBUG = False
|
||||
|
||||
os.system("") # ANSI escape setup
|
||||
sys.stdout.reconfigure(encoding='utf-8') # note: please stop using git bash
|
||||
if sys.version_info[1] >= 7: # only works on python 3.7+
|
||||
sys.stdout.reconfigure(encoding='utf-8') # note: please stop using git bash
|
||||
|
||||
# CONFIG.TXT CREATION
|
||||
if getattr(sys, 'frozen', False): # place config.txt in same directory as script (bundled or not)
|
||||
|
||||
Reference in New Issue
Block a user