That's a good idea! There are many people however who write all their scripts with the presumption that the script's parent folder is its working path (even when working in projects). So I think that using the project folder by default is also going to frustrate some users.
Here's one approach that might work:
- When in a project, check the current working directory when starting a job. If the working directory is a parent of the script being run, default to the working directory.
- When not in a project, or when the script is not in a parent of the current directory, default to the script's directory.
- Remember the directory used when running a script, and default to that directory the next time the script is run.
What do you think?