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 | |
---|
1 | function 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 | |
---|
10 | MMLDATAROOT = getmmlroot; |
---|
11 | return; |
---|
12 | |
---|
13 | %% Attente redefinition architecture |
---|
14 | |
---|
15 | MMLDATAROOT = ''; |
---|
16 | |
---|
17 | |
---|
18 | % This is legacy |
---|
19 | MMLDATAROOT = getenv('MLDATAROOT'); |
---|
20 | if isempty(MMLDATAROOT) |
---|
21 | error('MMLDATAROOT not known (.bash_profile wrong?): contact an administrator') |
---|
22 | end |
---|
23 | |
---|
24 | if exist(MMLDATAROOT, 'dir') ~= 7 |
---|
25 | error('Directory %s not mounted. Contact an administrator', MMLDATAROOT) |
---|
26 | end |
---|
27 | |
---|
28 | %MMLDATAROOT = getenv('MLROOT'); |
---|
29 | |
---|
30 | % End MMLDATAROOT with a file separator |
---|
31 | if ~strcmp(MMLDATAROOT(end), filesep) |
---|
32 | MMLDATAROOT = [MMLDATAROOT, filesep]; |
---|
33 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.