ins-amu / scripts

prepare data for TVB
MIT License
23 stars 12 forks source link

use fullfile on PRD to avoid problems with .. in path #40

Closed maedoc closed 9 years ago

maedoc commented 9 years ago

I tried to rebuild the project with deploytool -build subparcel.proj but it seems to hvae changed more than the binaries.

Also I noticed it's with the wrong MCR version (82 not 81) so ... I let you rebuild the binaries.

timpx commented 9 years ago

Is fullfile the standard equivalent in matlab of os.path.join()? Should I use this each time instead of path = ['/path1/', 'path2/']? In this case I have a couple of additional change to do.

maedoc commented 9 years ago

Yes fullfile is a standard MATLAB function, like os.path.join but does some extras I think like resolving .. etc, and handles differences like '\' on Windows etc.. The main difference is that you pass not a list but directly the pieces, fullfile('etc', 'fstab').