| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -14,12 +14,11 @@ tmpdir.refresh(); | |||
| 14 | 14 | common.allowGlobals(global.require); | |
| 15 | 15 | common.allowGlobals(global.embedVars); | |
| 16 | 16 | ||
| 17 | - function resolveBuiltBinary(bin) { | ||
| 18 | - let binary = `out/${common.buildType}/${bin}`; | ||
| 17 | + function resolveBuiltBinary(binary) { | ||
| 19 | 18 | if (common.isWindows) { | |
| 20 | 19 | binary += '.exe'; | |
| 21 | 20 | } | |
| 22 | - return path.resolve(__dirname, '..', '..', binary); | ||
| 21 | + return path.join(path.dirname(process.execPath), binary); | ||
| 23 | 22 | } | |
| 24 | 23 | ||
| 25 | 24 | const binary = resolveBuiltBinary('embedtest'); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments