#! /usr/bin/python3 # Test program for module {path_plan}. # Last edited on 2021-06-04 13:34:56 by jstolfi def create_output_folder(foldername): # Creates a folder with the given name to contain output files related to a given test run. # Also creates a sub-folder of the same called "debug". sys.stderr.write("output folder: %s\n" % foldername) if not os.path.exists(foldername): os.makedirs(foldername) if not os.path.exists(foldername + '/debug'): os.makedirs(foldername + '/debug') return foldername + "/" # ----------------------------------------------------------------------