Skip to content

Commit 12e8cc5

Browse files
committed
Update: path generalized for inclusion via ln -s from arbitrary folders
1 parent 9ea8021 commit 12e8cc5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/FlyingRaven.metta

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@
3333

3434
(sentence ((Evaluation (Predicate flies)
3535
(List (Concept Bird)))
36-
(stv 0.99 0.9)) (6))
37-
))
36+
(stv 0.99 0.9)) (6))))
3837

3938
!(Question (kbdynamic)
4039
(Evaluation (Predicate flies)

examples/PLN.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,11 @@ def wrapper(*args):
2424

2525
def call_plninit(*a):
2626
global globalmetta
27+
plnpath = os.path.expanduser("~/PLN")
2728
mettamorphpath = os.path.expanduser("~/metta-morph")
2829
tokenizer = globalmetta.tokenizer()
29-
os.system("cd .. && sh build.sh")
30-
os.system("cp ../src/Translator.metta ./TRANSLATE.metta")
30+
os.system(f"cd {plnpath} && sh build.sh")
31+
os.system(f"cp {plnpath}/src/Translator.metta ./TRANSLATE.metta")
3132
with open("TRANSLATE.metta", "a") as f:
3233
f.write("!" + str(a[0]).replace("#",""))
3334
os.system("cat ../PLN.metta > TRANSLATED.metta")

0 commit comments

Comments
 (0)