Parcourir la source

Remove debug error print line, flush stdout for future usage

Cammy il y a 7 ans
Parent
commit
94d8295f57
3 fichiers modifiés avec 12 ajouts et 2 suppressions
  1. 9 0
      .gitignore
  2. 0 1
      pyinstalive/initialize.py
  3. 3 1
      pyinstalive/logger.py

+ 9 - 0
.gitignore

@@ -40,3 +40,12 @@ requirements\.txt
 *.log
 
 *.spec
+
+*.bat
+
+exe-info\.txt
+
+pyinstalive\.ico
+
+pyinstalive_win\.py
+

+ 0 - 1
pyinstalive/initialize.py

@@ -348,7 +348,6 @@ def run():
 			except:
 				pass
 	except Exception as e:
-		print(str(e))
 		settings.log_to_file = 'False'
 		pass # Pretend nothing happened
 

+ 3 - 1
pyinstalive/logger.py

@@ -55,6 +55,7 @@ def log(string, color):
 				f.close()
 		except:
 			pass
+	sys.stdout.flush()
 
 def seperator(color):
 	if supports_color() == "No":
@@ -67,4 +68,5 @@ def seperator(color):
 				f.write(sep + "\n")
 				f.close()
 		except:
-			pass
+			pass
+	sys.stdout.flush()