|
From: | Ian McCallion |
Subject: | Re: Default Path in Octave 4.2.1 |
Date: | Mon, 12 Mar 2018 16:36:57 +0000 |
Hello,
I am trying to set default path while launching the tool, same code working with Octave 4.0.3 and not working 4.2.1
Modified code if file “octaverc”, path: Octave-4.2.1\share\octave\site\m\startup
Added code:
cdsid = lower(getenv('USERNAME'));
pathdir = strcat('C:\Users\',cdsid,'\Documents\OCTAVE');
if isdir(pathdir)
cd(getenv(pathdir);
else
mkdir(pathdir);
cd(pathdir);
end
where cdsid is user name. after adding the above code default path not setting to expected one, instead default path is the folder where the Octave files are.
[Prev in Thread] | Current Thread | [Next in Thread] |