Paths to do-file in Stata
问题 Would it be possible, when I launch a do-file to recover the path of the do-file as a variable? I'm sharing a project with a co-author (via Dropbox). The structure of the folders (data, logs, etc.) is therefore the same on both sides. But the folders are situated differented on my coauthor's filesystem and mine. It would therefore be helpful for us to write do-file that are agnostic about the path of the folders, etc. We would like the path to our projects not to be hard-coded. Thank you! 回答1