Run code in a different location
id like to try and run a program ive written in python, in a different location to where the file is currently saved, for example:
I have the program (currently named dl.py) saved in Folder A
I can open terminal in Folder B and want to have dl.py run in folder B, and perform all of its actions within that folder, while it is still saved in Folder A.
as it is a downloading agent I have written and am testing some scenarios, and don't want to clog Folder B with the file itself, as it also uses some config files
any advice on this would be much appreciated
(im amateur with Mac terminal at best)
MacBook Air 13″, macOS 12.1