Commit f84453db authored by beamdyn's avatar beamdyn

dispaly apphome, machfs, tango host on startup

parent 0c4edcb7
......@@ -4,8 +4,10 @@ global APPHOME MACHFS
restoredefaultpath; % cancel previous startmachine.
if ~(exist('isdeployed','builtin') && isdeployed)
if nargin < 1, rootpath=pwd; end
optpath(... % Same order as in the resulting PATH
'~/matlab',...
fullfile(rootpath,'../tango-matlab/tango-matlab/mex-file'),... % expects to find tango matlab in the parent directory
fullfile(rootpath,'../tango-matlab/tango-matlab/m-files'),... % expects to find tango matlab in the parent directory
fullfile(rootpath,'../tango-matlab/highlevel-tango-matlab'),... % expects to find tango matlab in the parent directory
......@@ -31,6 +33,10 @@ APPHOME=getenv('APPHOME'); % to overwrite existing APPHOME (ESRF->EBS test))
MACHFS = '/machfs';% [APPHOME '/..']; % for test ESRF->EBS
if isempty(APPHOME), APPHOME=getenv('APPHOME'); end
disp(['APPHOME is: ' APPHOME]);
disp(['MACHFS is: ' MACHFS]);
disp(['TANGO_HOST is: ' getenv('TANGO_HOST')]);
function optpath(varargin)
for i=nargin:-1:1
if (exist(varargin{i},'dir') == 7), addpath(genpath(varargin{i})); end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment