diff --git a/sean_sem_seg/run_single_file.py b/sean_sem_seg/run_single_file.py index 9db78d050e09e2de627928ae878ec2fc7a98a1da..7961f1acfe3ba5196306b68b7b72d3814d77223e 100644 --- a/sean_sem_seg/run_single_file.py +++ b/sean_sem_seg/run_single_file.py @@ -98,7 +98,10 @@ if __name__ == "__main__": # copy the output "segmented_cleaned.las" to the output directory - results_dir_name = args.point_cloud.split('.')[0] + '_FSCT_output' + # results_dir_name = args.point_cloud.split('.')[0] + '_FSCT_output' + dir_core_name = os.path.dirname(args.point_cloud) + file_name = os.path.basename(args.point_cloud).split('.')[0] + results_dir_name = os.path.join(dir_core_name, file_name + '_FSCT_output') print("Copying results to output directory.") shutil.copy(os.path.join(results_dir_name, "segmented_cleaned.las"), args.odir)