error workaround for older python versions (#33)

This commit is contained in:
eli fessler
2022-09-27 20:56:55 -10:00
parent 8dcff70b46
commit 7796903288

3
s3s.py
View File

@@ -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)