Ver Fonte

Fix reverting to default download path bug

Cammy há 6 anos atrás
pai
commit
5d86fbaef6
2 ficheiros alterados com 3 adições e 3 exclusões
  1. 1 1
      pyinstalive/pil.py
  2. 2 2
      pyinstalive/startup.py

+ 1 - 1
pyinstalive/pil.py

@@ -50,7 +50,7 @@ def initialize():
     ig_pass = ""
     dl_user = ""
     dl_batchusers = []
-    dl_path = os.getcwd()
+    dl_path = os.getcwd() + "/"
     dl_lives = True
     dl_replays = True
     dl_comments = True

+ 2 - 2
pyinstalive/startup.py

@@ -197,9 +197,9 @@ def validate_inputs(config, args, unknown_args):
         if not pil.dl_path.endswith('/'):
             pil.dl_path = pil.dl_path + '/'
         if not pil.dl_path or not os.path.exists(pil.dl_path):
-            pil.dl_path = os.getcwd()
+            pil.dl_path = os.getcwd() + "/"
             if not args.dlpath:
-                error_arr.append(['download_path', os.getcwd()])
+                error_arr.append(['download_path', os.getcwd() + "/"])
             else:
                 logger.warn("Custom config path is invalid, falling back to default path: {:s}".format(pil.dl_path))
                 logger.separator()