|
@@ -199,8 +199,8 @@ class Writer(object):
|
|
|
self.file_b.write(text)
|
|
|
|
|
|
try:
|
|
|
- with open("bootstrap.m", "w") as fa:
|
|
|
- with open("minimal.m", "w") as fb:
|
|
|
+ with open("bootstrap/bootstrap.m", "w") as fa:
|
|
|
+ with open("bootstrap/minimal.m", "w") as fb:
|
|
|
f = Writer(fa, fb)
|
|
|
# Create the root first
|
|
|
f.write("Node root()\n")
|
|
@@ -293,10 +293,10 @@ try:
|
|
|
sys.path.append("interface/HUTN/")
|
|
|
from hutn_compiler.compiler import main as compile_code
|
|
|
|
|
|
- with open("bootstrap.al", "w") as f:
|
|
|
+ with open("bootstrap/bootstrap.al", "w") as f:
|
|
|
f.write(code)
|
|
|
- code = compile_code("bootstrap.al", "interface/HUTN/grammars/actionlanguage.g", "BS", ["--debug"])
|
|
|
- os.remove("bootstrap.al")
|
|
|
+ code = compile_code("bootstrap/bootstrap.al", "interface/HUTN/grammars/actionlanguage.g", "BS", ["--debug"])
|
|
|
+ os.remove("bootstrap/bootstrap.al")
|
|
|
return code.replace("auto_initial_IP", target)
|
|
|
|
|
|
# Create code for initial user
|
|
@@ -316,6 +316,6 @@ try:
|
|
|
f.write("Edge _user_IP(__hierarchy, IP_new)\n", both=False)
|
|
|
f.write("Edge __user_IP(_user_IP, __IP_str)\n", both=False)
|
|
|
except:
|
|
|
- os.remove("bootstrap.m")
|
|
|
- os.remove("minimal.m")
|
|
|
+ os.remove("bootstrap/bootstrap.m")
|
|
|
+ os.remove("bootstrap/minimal.m")
|
|
|
raise
|