File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 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)
Original file line number Diff line number Diff line change @@ -24,10 +24,11 @@ def wrapper(*args):
2424
2525def 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" )
You can’t perform that action at this time.
0 commit comments