def run_python_file(working_directory, file_path, args=[]): Permite ejecutar codigo python escrito en el archivo (file_path) apartir de una ruta base (working_directory), siendo 'file_path' un archivo ...
abs_file_path = os.path.abspath(os.path.join(working_directory, file_path)) if not abs_file_path.startswith(abs_working_dir): return f'Error: Cannot execute "{file_path}" as it is outside the ...