source: trunk/src/command_load_python.m @ 1154

Last change on this file since 1154 was 1135, checked in by sommeria, 8 months ago

fct for python added

File size: 671 bytes
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
13function success=command_load_python
14code1=system('module load python/3.9.7')
15if code1==0
16cmd = ['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"'];
18code = system(cmd);
19end
20success=~code;
21
22
23
24
25
Note: See TracBrowser for help on using the repository browser.