I have a script in Python that works fine, it creates about 1000 files once the script is ran.
So I implemented some code to move the files to a new folder once the script is ran.
import glob, os, shutil
source_dir = 'C:/Users/george/Desktop/my aemo app/a'
dst = 'C:/Users/george/Desktop/my aemo app/b'
files = glob.iglob(os.path.join(source_dir, "*.csv"))
for file in files:
if os.path.isfile(file):
shutil.copy2(file, dst)
This works fine when I run it in idle, however once made executable and I send the program to someone else, it doesn't move the files for them?