mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-11-29 18:48:09 +08:00
fix for windows
This commit is contained in:
parent
00ee2479af
commit
f287dfd4ca
@ -55,9 +55,15 @@ def toExe(name):
|
||||
else:
|
||||
return name
|
||||
|
||||
def writeArgs(filename, str):
|
||||
fd = os.open(filename, os.O_RDWR | os.O_CREAT | os.O_TRUNC)
|
||||
os.write(fd, str)
|
||||
os.close(fd)
|
||||
|
||||
def run(cmd, flags, files):
|
||||
cmd_args=cmd + ' ' + flags + ' ' + getIncludes() + ' ' + ' '.join(files)
|
||||
cmd_args = flags + ' ' + getIncludes() + ' ' + ' '.join(files)
|
||||
cmd_args = cmd_args.replace('\\', '\\\\');
|
||||
writeArgs("args.txt", cmd_args);
|
||||
print(cmd_args)
|
||||
#os.system(cmd_args);
|
||||
subprocess.call(cmd_args, shell=True);
|
||||
os.system(cmd + ' @args.txt');
|
||||
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user