python shutil.move not working when moving from C to C but D to C

I am working on a simple installer for a app but I am getting errors. Code looks like: import shutil import os name = os.getlogin() source_path = os.path.abspath(‘foo.bar’) destination_path = os.path.join(‘C:’, ‘Users’, name, ‘AppData’, ‘Roaming’, ‘Microsoft’, ‘Windows’, ‘Start Menu’, ‘Programs’, ‘Startup’) shutil.move(source_path, destination_path) it works perfect for moving foo.bar from my d drive to c… Read More python shutil.move not working when moving from C to C but D to C

loop in python to create folders: "The system cannot find the path specified"

I am using os.path.join and os.mkdir to create folders on a loop.I would like to create a folder with the city name/inputs/b-d. However, returns error. Similar behavior to this: import shutil, os PATH_TEST=r’C:\Users\Ricardo\Dropbox\test’ d = {‘Municipalities’: [‘NY’, ‘Boston’]} df = pd.DataFrame(data=d) df for index in range(len(df)): aaa = os.path.join(PATH_TEST,df[‘Municipalities’][index],’inputs’,"b-d") if not os.path.exists(aaa): os.mkdir(aaa) Error: FileNotFoundError… Read More loop in python to create folders: "The system cannot find the path specified"