Skip to content

Commit

Permalink
file system fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tbenst committed Mar 20, 2017
1 parent ffa1f26 commit c991a13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@ jspm_packages
web/.psci_modules/
web/bower_components/
web/output/
web/static/js/main.js
4 changes: 2 additions & 2 deletions web/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ router.post("/start-program", ctx => {
if (labNotebook.program==="custom") {
// program already loaded in labNotebook.epl
} else if (labNotebook.program==="acuity") {
labNotebook.epl = fs.readFileSync('./src/programs/acuity.js', "utf-8")
labNotebook.epl = fs.readFileSync('/www/src/programs/acuity.js', "utf-8")
} else if (labNotebook.program==="wedge") {
labNotebook.epl = fs.readFileSync('./src/programs/wedge.js', "utf-8")
labNotebook.epl = fs.readFileSync('/www/src/programs/wedge.js', "utf-8")
}
program[sid] = compileJSProgram(sid, labNotebook.epl, labNotebook.seed, session.windowHeight,
session.windowWidth)
Expand Down

0 comments on commit c991a13

Please sign in to comment.