From 7796903288e6f5b0441d32d507e277899bd7eccf Mon Sep 17 00:00:00 2001 From: eli fessler Date: Tue, 27 Sep 2022 20:56:55 -1000 Subject: [PATCH] error workaround for older python versions (#33) --- s3s.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/s3s.py b/s3s.py index 123f272..49fd1f4 100755 --- a/s3s.py +++ b/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)