From 5738605304ea4bbe8dca59781569ef94f153121e Mon Sep 17 00:00:00 2001
From: Amira Abdel-Rahman <amira-rahman@aucegypt.edu>
Date: Sun, 13 Sep 2020 23:55:07 -0400
Subject: [PATCH] DEM Integration

---
 01_Code/physical_computing_interface/setup/serve.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/01_Code/physical_computing_interface/setup/serve.js b/01_Code/physical_computing_interface/setup/serve.js
index 7fbc829..fe3baa4 100644
--- a/01_Code/physical_computing_interface/setup/serve.js
+++ b/01_Code/physical_computing_interface/setup/serve.js
@@ -63,7 +63,7 @@ function runPython_urx(setup){
     let outputFile = editJsonFile(`${__dirname}/`+root+`sim_config.json`);
     outputFile.set("setup", setup.DEMSetup);
     outputFile.save();
-    console.log("saved the DEM setup in ../simulation/dice_firmware/build/x86/src/sim/vis/");
+    console.log("saved the DEM setup in"+ `${__dirname}/`+root+`sim_config.json`);
     console.log();
     console.log("Compile and run the DEM simulator:")
     var commands=[];
@@ -74,10 +74,10 @@ function runPython_urx(setup){
       commands.push("cd " + "src/sim/vis/");
 
     }else{
-      commands.push("cd " + root);
+      // commands.push("cd " + root);
     }
     
-    commands.push("./sim_vis_executable");
+    commands.push("cd " + root+"; ./sim_vis_executable");
     runListCommand(commands,0);
 
   }else{
-- 
GitLab