Skip to content

Commit

Permalink
Fix file referencing problem in sim.go when container in use, leave
Browse files Browse the repository at this point in the history
container prompt in /tmp/input so that % sim -is args-run-sim will launch the run
  • Loading branch information
dmnTools committed Dec 12, 2024
1 parent de296f9 commit 2368170
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ COPY . .
RUN cd embedded/sim-dir && go mod tidy && go build -o /bin/sim sim.go exp.go

# remember to use "-v" to map in /tmp/extern
WORKDIR /pcesapps/embedded
WORKDIR /tmp/extern/input
2 changes: 1 addition & 1 deletion embedded/sim-dir/sim.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ func main() {
}

if cp.IsLoaded("msr") {
msrFile = cp.GetVar("msr").(string)
if !container {
msrFile = cp.GetVar("msr").(string)
msrFile = filepath.Join(outputDir, msrFile)
} else {
baseFile := filepath.Base(msrFile)
Expand Down

0 comments on commit 2368170

Please sign in to comment.