if os.path.exists( path ):
import sys
if sys.platform == "win32":
- os.system( "rmdir /S /Q " + path )
- os.system( "mkdir " + path )
+ os.system( "rmdir /S /Q " + '"' + path + '"' )
+ os.system( "mkdir " + '"' + path + '"' )
else:
os.system( "rm -rf " + path + "/*" )
pass
import sys
if sys.platform == "win32":
- command = "type " + src_file + " >> " + dest_file
+ command = "type " + '"' + src_file + '"' + " >> " + '"' + dest_file + '"'
else:
command = "cat " + src_file + " >> " + dest_file
pass
else:
import sys
if sys.platform == "win32":
- command = "copy " + src_file + " " + dest_file + " > nul"
+ command = "copy " + '"' + src_file + '"' + " " + '"' + dest_file + '"' + " > nul"
else:
command = "cp " + src_file + " " + dest_file
pass