|
@@ -393,9 +393,12 @@ class ModelverseKernel(object):
|
|
|
|
|
|
#print(func)
|
|
|
|
|
|
- # To write out all generated functions
|
|
|
- with open('/tmp/junk/%s' % suggested_name, 'w') as f:
|
|
|
- f.write(func)
|
|
|
+ try:
|
|
|
+ # Try to write out the generated code
|
|
|
+ with open('/tmp/%s' % suggested_name, 'w') as f:
|
|
|
+ f.write(func)
|
|
|
+ except:
|
|
|
+ pass
|
|
|
|
|
|
yield [("RETURN", [func])]
|
|
|
|