I finally found out how to do this, and I am writing an answer to other people with the same problem. It can be found in the "Launch Configurations" or "Debug Configurations" section. Select "Python Run" and your launch configuration on the left, and then on the "Arguments" tab on the right, set the "working directory" as "different", specifying the "path" where you want to run your code. Thanks for your interest, Wayne btw.
source share