I usually have my data file in the same project directory as the do file. And I execute the do file normally via
How can I load the data file in my do file without knowing the absolute path reference to the data file? I tried
but this doesn't work reliably, because the current working directory is not set to the directory the do-file is in.
What's the best way to deal with this to make project folders portable in the file system and between machines?
Many thanks for all suggestions.
Code:
do "/full/path/to/the/project/directory/mydofile.do"
Code:
use "./mydatafile.dta"
What's the best way to deal with this to make project folders portable in the file system and between machines?
Many thanks for all suggestions.
Comment