Files
learnopencv/InstallScripts/Windows-3/modifyBatchScripy.py
T
2018-11-22 10:57:03 +00:00

10 lines
293 B
Python

def modifyScript(batchScript):
f_write = open("finalScript.bat",'w')
with open(batchScript,'r') as f:
for line in f.readlines():
stringToWrite=line.replace('\\','/').strip()+"\n"
f_write.write(stringToWrite)
f_write.close()
if __name__ == "__main__":
modifyScript('runScript.bat')