Skip to content
Snippets Groups Projects
Commit 007655a4 authored by Nicola Vigano's avatar Nicola Vigano
Browse files

dct_launch: fixed launching DCT from someone else :D

parent 5dda49d0
No related branches found
No related tags found
No related merge requests found
......@@ -148,9 +148,13 @@ class FunctionsBuilder(object):
script_loc = os.path.join(self.script_dir, 'compile.m')
self.out.printSubJob("Writing '%s' script to disk.." % script_loc)
fid = open(script_loc, "w")
fid.writelines(script_content)
fid.close()
try:
fid = open(script_loc, "w")
fid.writelines(script_content)
fid.close()
except IOError as ex:
DCTOutput.printWarning("Impossible to write script file: '%s'" % script_loc)
print(ex)
def compileFuncs(self):
if not os.path.exists(self.bin_dir):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment