소스 검색

Ported generate bootstrap

Yentl Van Tendeloo 9 년 전
부모
커밋
f1aef1432c
4개의 변경된 파일5개의 추가작업 그리고 8개의 파일을 삭제
  1. 2 2
      bootstrap/bootstrap.py
  2. 0 3
      generate_bootstrap.bat
  3. 0 3
      generate_bootstrap.sh
  4. 3 0
      scripts/generate_bootstrap.py

+ 2 - 2
bootstrap/bootstrap.py

@@ -290,12 +290,12 @@ try:
 
             def compile_code_AL(code, target):
                 import sys
-                sys.path.append("../interface/HUTN/")
+                sys.path.append("interface/HUTN/")
                 from hutn_compiler.compiler import main as compile_code
 
                 with open("bootstrap.al", "w") as f:
                     f.write(code)
-                code = compile_code("bootstrap.al", "../interface/HUTN/grammars/actionlanguage.g", "BS", ["--debug"])
+                code = compile_code("bootstrap.al", "interface/HUTN/grammars/actionlanguage.g", "BS", ["--debug"])
                 os.remove("bootstrap.al")
                 return code.replace("auto_initial_IP", target)
 

+ 0 - 3
generate_bootstrap.bat

@@ -1,3 +0,0 @@
-cd bootstrap
-python bootstrap.py
-cd ..

+ 0 - 3
generate_bootstrap.sh

@@ -1,3 +0,0 @@
-#!/bin/bash
-cd bootstrap
-pypy bootstrap.py

+ 3 - 0
scripts/generate_bootstrap.py

@@ -0,0 +1,3 @@
+import sys
+sys.path.append(".")
+import bootstrap.bootstrap