Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: Relative Paths in Stata 12
From
Conor Hughes <[email protected]>
To
[email protected]
Subject
st: Relative Paths in Stata 12
Date
Thu, 5 Sep 2013 12:21:21 -0400
Hello All,
Recently I've been trying to work on a project I originally began in
Stata 10 on Mac OS. I'm now running Stata 12 (also on Mac), and
finding that my relative paths aren't working as they were previously.
For example, running a do file containing:
clear all
cap log close
log using "./example.log", replace
Previously, the "./" was evaluated as the directory of the do file
that was running. Now when I try to run it, it just goes to the
current working directory. The same happens when using "../", for
example -insheet using "../import/raw.txt", clear-. Has anyone run
into issues like this before? There will eventually be a number of
people working on this out of a shared folder, so it would be
preferable not to have to edit the working directory manually every
time a new user goes to run something.
Thanks, and have a great day,
Conor
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/