diff --git a/sound_algo/tests/e2e_02_load.scd b/sound_algo/tests/e2e_02_load.scd index 95f779b..fb9a1c5 100644 --- a/sound_algo/tests/e2e_02_load.scd +++ b/sound_algo/tests/e2e_02_load.scd @@ -9,7 +9,7 @@ "=== e2e_02_load ===".postln; -~base = "/Users/electron/Documents/Projets_Creatifs/sound_algo-refonte-v2/"; +~base = thisProcess.nowExecutingPath !? { |p| p.dirname.dirname ++ "/" }; ~testCount = 0; ~testFailed = 0; diff --git a/sound_algo/tests/e2e_06_mixer.scd b/sound_algo/tests/e2e_06_mixer.scd index 6eeb378..5f5015a 100644 --- a/sound_algo/tests/e2e_06_mixer.scd +++ b/sound_algo/tests/e2e_06_mixer.scd @@ -6,7 +6,7 @@ "=== e2e_06_mixer ===".postln; -~base = "/Users/electron/Documents/Projets_Creatifs/sound_algo-refonte-v2/"; +~base = thisProcess.nowExecutingPath !? { |p| p.dirname.dirname ++ "/" }; ~testCount = 0; ~testFailed = 0; diff --git a/sound_algo/web_bridge.scd b/sound_algo/web_bridge.scd index 02f9e24..6cc171f 100644 --- a/sound_algo/web_bridge.scd +++ b/sound_algo/web_bridge.scd @@ -37,7 +37,7 @@ thisProcess.openUDPPort(~webBridgeIn); ~webBridgeRelays.do { |addr| addr.sendMsg(path, *args) }; }; -~webBase = ~base ?? { "/Users/electron/Documents/Projets_Creatifs/sound_algo-refonte-v2/" }; +~webBase = ~base ?? { thisProcess.nowExecutingPath !? { |p| p.dirname ++ "/" } }; ~webHttpUrl = "http://localhost:3000"; // ---------- Auto-lancement serveur Node + ouverture pages -----------