File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ def precompile_testbaesmodelica(systemImage: os.PathLike | None = None) -> None:
50
50
'Pkg.develop(path="TestBaseModelica");'
51
51
'Pkg.precompile("TestBaseModelica")' )
52
52
else :
53
- print ("Pre-compiling Julia system image %s for TestBaseModelica."
53
+ print ("Pre-compiling Julia system image %s for TestBaseModelica. "
54
54
"This might take a while." % systemImage )
55
55
56
56
jl .seval ('create_sysimage(["TestBaseModelica"];'
Original file line number Diff line number Diff line change @@ -554,6 +554,12 @@ def sendExpressionOldOrNew(cmd):
554
554
cmd += " --sysimage=%s" % conf ["julia-system-image" ]
555
555
cmd += " %s" % juliaCallFile
556
556
with open (simFile ,"w" ) as fp :
557
+ with open (juliaCallFile , "r" ) as juliaFile :
558
+ file_content = juliaFile .read ()
559
+ fp .write ("%s_test.jl:\n \n " % conf ["modelName" ])
560
+ fp .write (file_content )
561
+ fp .write ("\n " )
562
+
557
563
fp .write ("%s\n " % (cmd ))
558
564
res = checkOutputTimeout (
559
565
"(rm -f %s.pipe ; mkfifo %s.pipe ; head -c 1048576 < %s.pipe >> %s & %s > %s.pipe 2>&1)"
You can’t perform that action at this time.
0 commit comments