This commit is contained in:
Pytron 2019-03-26 14:39:43 +00:00
parent 242237e91a
commit fecd1ff6c7
3 changed files with 4 additions and 4 deletions

2
pytron

@ -1 +1 @@
Subproject commit 5d1c96407b665e138784431cf0046537065bfaee
Subproject commit 28e8aae4ee2b582cbabad44484e05a50ded0bd0f

View File

@ -4,7 +4,7 @@ import sys
import json
import random
random.seed()
sys.path.append('pytron')
sys.path.append('../pytron')
from tron.map import Map
from tron.game import Game, PositionPlayer

View File

@ -32,7 +32,7 @@ function runPython() {
}
process.stdout.write('\n');
let p = spawn(pythonPath, ['pytron_run/run.py']);
let p = spawn(pythonPath, ['run.py'], {cwd: 'pytron_run'});
p.stdout.on('data', (data) => {
let content = data.toString().split('\n');
for (let line of content) {
@ -107,7 +107,7 @@ function startServer() {
app.use(fileUpload());
app.get('/', (req, res) => {
fs.readFile('assets/data.json', 'utf-8', (err, data) => {
fs.readFile('pytron_run/assets/data.json', 'utf-8', (err, data) => {
if (err != null) {
console.log(err);
}