Spaces:
Sleeping
Sleeping
Update verify2.py
Browse files- verify2.py +2 -2
verify2.py
CHANGED
|
@@ -202,13 +202,13 @@ def verify_xmi(output,output_file_name):
|
|
| 202 |
#Return can be either bool or preferably the actual compilation error or xmi line error
|
| 203 |
|
| 204 |
#Returning a bool won't be that helpful ..
|
| 205 |
-
with open("outs
|
| 206 |
# Writing data to a file
|
| 207 |
|
| 208 |
file1.writelines(output[output.find("```xml")+len("```xml\n"):output.rfind("```")])
|
| 209 |
try:
|
| 210 |
rset = ResourceSet()
|
| 211 |
-
resource = rset.get_resource(URI("outs
|
| 212 |
|
| 213 |
except Exception as e:
|
| 214 |
return e.args[0]
|
|
|
|
| 202 |
#Return can be either bool or preferably the actual compilation error or xmi line error
|
| 203 |
|
| 204 |
#Returning a bool won't be that helpful ..
|
| 205 |
+
with open("outs/OAI/output"+output_file_name+".ecore", "w+") as file1:
|
| 206 |
# Writing data to a file
|
| 207 |
|
| 208 |
file1.writelines(output[output.find("```xml")+len("```xml\n"):output.rfind("```")])
|
| 209 |
try:
|
| 210 |
rset = ResourceSet()
|
| 211 |
+
resource = rset.get_resource(URI("outs/OAI/output"+output_file_name+".ecore"))
|
| 212 |
|
| 213 |
except Exception as e:
|
| 214 |
return e.args[0]
|