cp

run cp command to make a copy of a file or change a file name in Python

run cp command to make a copy of a file or change a file name in Python Question: I want to use Python to run the cp command on Linux, thus copying a file. I have this code: newfile = "namePart1" + dictionary[key] + "namePart2" os.system("cp cfn5e10_1.lp newfile") How can I make it so that …

Total answers: 3