Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.

Commit 0334c25

Browse files
adeas31OpenModelica-Hudson
authored andcommitted
Remove the extension
Belonging to [master]: - #2221
1 parent 0792147 commit 0334c25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Compiler/Script/CevalScript.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1393,7 +1393,7 @@ algorithm
13931393
if (0 == System.systemCall("unzip -q -o -d \"" + workdir + "\" \"" + filename + "\"")) then
13941394
b = true;
13951395
s1 = System.basename(filename);
1396-
s2::_ = System.strtok(s1, ".");
1396+
s2 = Util.removeLast3Char(s1);
13971397
s3 = System.dirname(filename);
13981398
filename1 = s3 + "/" + s2 + "/" + s2 + ".moc";
13991399
filename2 = s3 + "/" + s2 + "/package.moc";

0 commit comments

Comments
 (0)