From 4862091c7b7ce453064aaf10dbebd527b5bdb1de Mon Sep 17 00:00:00 2001 From: las1g21 <las1g21@soton.ac.uk> Date: Fri, 10 Jan 2025 13:06:31 +0000 Subject: [PATCH] Prevent Hardcode Paths --- scripts/scene_completion.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/scene_completion.py b/scripts/scene_completion.py index 6baef21..e3514d4 100644 --- a/scripts/scene_completion.py +++ b/scripts/scene_completion.py @@ -113,7 +113,7 @@ def get_completed_scene(shifted_disparity_path, shifted_t_path): output = stdout.read().decode() print(output) - remote_file_path = "/mainfs/ECShome/kproject/mona/MDBNet360_GDP/output/scene_completed_prediction.obj" + remote_file_path = os.getenv("REMOTE_OUTPUT_PATH_OBJ") current_dir = os.getcwd() parent_dir = os.path.dirname(current_dir) local_file_folder = os.path.join(parent_dir, "edgenet-360/Output") @@ -121,7 +121,7 @@ def get_completed_scene(shifted_disparity_path, shifted_t_path): with SCPClient(client.get_transport()) as scp: scp.get(remote_file_path, local_file_path) # Download file - remote_file_path = "/mainfs/ECShome/kproject/mona/MDBNet360_GDP/output/scene_completed_prediction.mtl" + remote_file_path = os.getenv("REMOTE_OUTPUT_PATH_MTL") local_file_path = os.path.join(local_file_folder,"scene_completed_prediction.mtl") with SCPClient(client.get_transport()) as scp: scp.get(remote_file_path, local_file_path) # Download file -- GitLab