Skip to content

Commit

Permalink
[MLC-37] app: Update main to use new runner
Browse files Browse the repository at this point in the history
  • Loading branch information
ParkerSm1th committed Mar 3, 2024
1 parent 3e87066 commit 0458583
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/main/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,8 @@ class ServerManager {
const args = ['--host 127.0.0.1', `--port ${port}`];
const modifiedArgs = args.flatMap(arg => arg.split(/\s+/));

const pythonProcess = !isProd
? execFile(path.join('dist', 'runner'), modifiedArgs, {
cwd: '../',
})
const pythonProcess = isProd
? execFile(path.join(process.resourcesPath, 'server', 'runner'), modifiedArgs)
: spawn('python', ['-m', 'server.server', ...modifiedArgs], {
cwd: '../',
});
Expand Down

0 comments on commit 0458583

Please sign in to comment.