os.system("pwd")runs a shell (1st process) to run the external programpwd(2nd process). So the performance will be poor and it is not portable sincepwdis not implemented on all platforms that support Python. The output goes thestdout, it is not captured for use in the program. You omi...
getcwd() code = 1 while code in [1, 2]: # A code of 1 means to list the new directory # and wait for the user to select a file # or directory. # A code of 2 means to open a shell at the # specified directory. (l, fmt) = list_files(the_path) # Instantiate the main ...