Path Names External to Igor
bpatterson
I'm trying to have a dynamically created Igor path that is the path to the windows/mac documents directory. I say dynamically because I would like to be able to load a procedure on any computer and have it tell me the computer specific path to the documents directory. E.g. C:\UsersUserName\Dropbox will have a different username for each computer but all I care about is that Igor has an internal saved path to the dropbox folder on any computer that the procedure is run on.
I tried to create a saved path in Igor with the windows path shortcut %HOMEPATH% but igor didn't understand it. It looks like Igor paths need to be a "hardcoded" path to save correctly. Is there anyway to do this?
I know you can get the path information into igor if you have the user select the directory but i'm trying to reference a directory, that will be a common directory, without user input so the user doesn't have to go digging each time they load the procedure. If possible, I would also like to avoid having to load the procedure on each person's computer, similar to saving the procedure in the Igor directory, as I'm constantly making updates to the code and don't want to setup some sort of update on each computer.
Thanks,
Note that Igor returns Macintosh-style colon-separated paths. Execute this for details:
You can convert between Macintosh (colon-separated) and Windows paths using ParseFilePath. This is rarely necessary because Igor accepts Macintosh-style paths on both Macintosh and Windows.
January 27, 2015 at 06:24 pm - Permalink
Thanks, this is exactly what I'm looking for.
January 29, 2015 at 08:36 am - Permalink