Commits

luoboiqingcai committed 5299b1d

refine

Comments (0)

Files changed (1)

 import sys
 import logging
 import time
-import platform
+#import platform
+import os
 from multiprocessing import (cpu_count, Pool)
 
 __author__ = "luoboiqingcai"
                 if prex[-1] == '/' or prex[-1] == '\\':
                     print('prex not end with slash')
                 else:
-                    if platform.system() == 'Linux':
-                        prex += '/'
-                    elif platform.system() == 'Windows':
-                        prex += '\\'
+                    prex += os.sep #这样在jython、ironpython、pypy下应该都没有问题了
+                    # if platform.system() == 'Linux':
+                    #     prex += '/'
+                    # elif platform.system() == 'Windows':
+                    #     prex += '\\'
                 instance.downloadchaoxing(from_remote,arg,sp=resume_point(prex+logfile))
                 break
             if sp and ep: