source: MML/trunk/mml/getmmldataroot.m @ 4

Last change on this file since 4 was 4, checked in by zhangj, 11 years ago

Initial import--MML version from SOLEIL@2013

File size: 782 bytes
Line 
1function MMLDATAROOT = getmmldataroot(varargin)
2%GETMMLDATAROOT - Returns data root directory of the Matlab Middle Layer
3%
4%  NOTES
5%  1. 25 February 2009. Use of the Active circle at SOLEIL to store data only
6
7%
8%%  Written by Laurent S. Nadolski
9
10MMLDATAROOT = getmmlroot;
11return;
12
13%% Attente redefinition architecture
14
15MMLDATAROOT = '';
16
17
18% This is legacy
19MMLDATAROOT = getenv('MLDATAROOT');
20if isempty(MMLDATAROOT)
21    error('MMLDATAROOT not known (.bash_profile wrong?): contact an administrator')
22end
23
24if exist(MMLDATAROOT, 'dir') ~= 7
25   error('Directory %s not mounted. Contact an administrator', MMLDATAROOT)
26end
27
28%MMLDATAROOT = getenv('MLROOT');
29
30% End MMLDATAROOT with a file separator
31if ~strcmp(MMLDATAROOT(end), filesep)
32    MMLDATAROOT = [MMLDATAROOT, filesep];
33end
Note: See TracBrowser for help on using the repository browser.