Forum Replies Created
-
AuthorPosts
-
Thushara
ParticipantHi Andy,
With regards to default preferences:
Inside ea_prefs.m lines 16:18 read
if ~exist([home,'.ea_prefs.m'],'file') copyfile([ea_getearoot,'common',filesep,'ea_prefs_default.m'],[home,'.ea_prefs.m']); endThere is no “ea_prefs_default.m” file in the root directory “common” folder – I checked the latest version on git. There is however a “ea_prefs_default.mat” file in that folder.
I think the .m file is in the root – not the common folder. Please correct me if I’m wrong. I’ve changed the code as below on my PC to get lead to run.
if ~exist([home,'.ea_prefs.m'],'file') copyfile([ea_getearoot,filesep,'ea_prefs_default.m'],[home,'.ea_prefs.m']); endThushara
ParticipantDear Andy and Greydon,
I ran into this error as well after upgrading my PC and trying to reinstall lead dbs. It appears that Matlab’s copyfile() has issues when it is asked to copy files to a network mapped drive. My default home directory is set to a network drive by our IT department. I hacked the ea_gethome.m file to set the home directory to something else. Please see below.
function home=ea_gethome
% if ispc
% home = [getenv(‘HOMEDRIVE’) getenv(‘HOMEPATH’)];
% else
% home = getenv(‘HOME’);
% endhome=’C:\MATLAB\’;
if isdeployed
mkdir([ctfroot,filesep,’home’,filesep]);
home=[ctfroot,filesep,’home’,filesep];
endI hope this helps. In future, perhaps this issue can be resolved – otherwise I’ll have to do this every time I upgrade to a newer version of lead dbs.
Best Regards,
Thushara.
-
AuthorPosts
