Procházet zdrojové kódy

A few more adjustments, this should work

Cammy před 6 roky
rodič
revize
bfcf702abd
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  1. 4 0
      pyinstalive/initialize.py

+ 4 - 0
pyinstalive/initialize.py

@@ -169,10 +169,14 @@ def check_config_validity(config, args=None):
 				log_warn("Invalid or missing setting detected for 'save_path', falling back to path: {:s}".format(os.getcwd()))
 				settings.save_path = os.getcwd()
 				has_thrown_errors = True
+				if not settings.save_path.endswith('/'):
+					settings.save_path = settings.save_path + '/'
 		except Exception as e:
 			log_warn("Invalid or missing setting detected for 'save_path', falling back to path: {:s}".format(os.getcwd()))
 			settings.save_path = os.getcwd()
 			has_thrown_errors = True
+			if not settings.save_path.endswith('/'):
+				settings.save_path = settings.save_path + '/'
 
 
 		try: