From 9386cecfc05b907cf002586d7e5cf35705b0d87d Mon Sep 17 00:00:00 2001 From: BarsTiger Date: Thu, 26 Aug 2021 11:53:37 +0300 Subject: [PATCH] 1.2.1 Bugfix Fixed stopping program after launch on windows Added automatically installing windows-curses On linux pre-installed --- GTAwhatToBuy/GTAwhatToBuy.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/GTAwhatToBuy/GTAwhatToBuy.py b/GTAwhatToBuy/GTAwhatToBuy.py index 5eb6cef..bd9b8f1 100644 --- a/GTAwhatToBuy/GTAwhatToBuy.py +++ b/GTAwhatToBuy/GTAwhatToBuy.py @@ -1,5 +1,9 @@ -import json, os, shutil, subprocess -import curses +import json, os, shutil, subprocess, sys +try: + import curses +except: + subprocess.check_call([sys.executable, "-m", "pip", "install", 'windows-curses']) + import curses import sys os.system("title " + "GTA BuyBase")