Line | |
---|
1 | %'command_load_python': creates the command strings for loading Python |
---|
2 | %programmes for Linux system('GLNX86','GLNXA64','MACI64') |
---|
3 | %------------------------------------------------------------------------ |
---|
4 | % function success=command_launch_python |
---|
5 | % |
---|
6 | %OUTPUT |
---|
7 | % success =1 if command successfull, 0 otherwise |
---|
8 | |
---|
9 | % |
---|
10 | %INPUT: |
---|
11 | |
---|
12 | |
---|
13 | function success=command_load_python |
---|
14 | code1=system('module load python/3.9.7') |
---|
15 | if code1==0 |
---|
16 | cmd = ['LD_LIBRARY_PATH=$(echo $LD_LIBRARY_PATH | pyp "l = x.split('':''); l = [s for s in l if ''matlab'' not in s]; print('':''.join(l))") ' ... |
---|
17 | 'python -c "import fluidimage"']; |
---|
18 | code = system(cmd); |
---|
19 | end |
---|
20 | success=~code; |
---|
21 | |
---|
22 | |
---|
23 | |
---|
24 | |
---|
25 | |
---|
Note: See
TracBrowser
for help on using the repository browser.