The -i and -p switches aren't required anymore on installed and portable versions

This commit is contained in:
Jose Manuel Delicado
2016-01-19 19:52:09 +01:00
parent 112391afeb
commit c830d4b5b4
5 changed files with 9 additions and 13 deletions

View File

@@ -32,6 +32,9 @@ if system == "Windows":
from update import updater
stdout_temp=sys.stdout
stderr_temp=sys.stderr
#check if TWBlue is installed
if os.path.exists(paths.app_path(u"Uninstall.exe")):
paths.mode="installed"
#if it's a binary version
if hasattr(sys, 'frozen'):
sys.stderr = open(paths.logs_path("stderr.log"), 'w')