This commit is contained in:
David Anthoff
2020-03-23 12:00:50 -07:00
parent 64ddafd7b5
commit 602be2cb75
2 changed files with 4 additions and 4 deletions

4
dist/index.js vendored
View File

@@ -977,8 +977,8 @@ function run() {
return __awaiter(this, void 0, void 0, function* () {
try {
if (require.main) {
let rootPath = path.dirname(require.main.filename);
yield exec.exec('julia', ['--color=yes', path.join(rootPath, '..', 'src', 'main.jl')]);
let rootPath = path.normalize(path.join(path.dirname(require.main.filename), '..'));
yield exec.exec('julia', ['--color=yes', path.join(rootPath, 'src', 'main.jl')]);
}
else {
core.setFailed('Require method to load root path did not work.');