Skip to content

Commit

Permalink
Removing duplicate temp dir
Browse files Browse the repository at this point in the history
  • Loading branch information
AnHeuermann authored and AnHeuermann committed Sep 24, 2021
1 parent da41aa1 commit 79b5fac
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/OMJulia.jl
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,6 @@ function ModelicaSystem(omc, filename, modelname, library=nothing; commandLineOp
else
return println(filename, "! NotFound")
end
omc.tempdir = replace(joinpath(pwd(), join(["zz_",Random.randstring(5),".tmp"])), r"[/\\]+" => "/")
mkdir(omc.tempdir)
omc.tempdir = replace(mktempdir(), r"[/\\]+" => "/")
if (!isdir(omc.tempdir))
return println(omc.tempdir, " cannot be created")
Expand Down

0 comments on commit 79b5fac

Please sign in to comment.