Skip to content

Commit

Permalink
try to fix win
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaTP committed Oct 8, 2023
1 parent 00ea4b8 commit 2b507b4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@ private Expression generateModuleInstantiation(Command cmd, File folder) {
assert(cmd.getType() == CommandType.MODULE);

var relativeFile = folder.toPath().resolve(cmd.getFilename()).toFile().getAbsolutePath()
.replaceFirst(baseDir.getAbsolutePath() + "/", "");
.replaceFirst(baseDir.getAbsolutePath() + File.pathSeparator, "")
.replace("\\", "\\\\"); // Win compat

var additionalParam = "";
if (cmd.getModuleType() != null) {
Expand Down

0 comments on commit 2b507b4

Please sign in to comment.