Page 1 of 1

Get relative path

Posted: Fri Aug 02, 2013 1:39 pm
by TrojakEW
I'm looking for a way to get relative path so the application will always open/look in relative subfolder to application/executable/vst. Start folder and sysfolder primitive can't get this path.

In ruby:
File.expand_path(File.dirname(__FILE__))
this will get ruby path (windows\system32) folder.

I want to setup internal file list that will always look for files in specific subfolder in app relative path.

Re: Get relative path

Posted: Fri Aug 02, 2013 4:46 pm
by Drnkhobo
"Find Files" primitive maybe?
:?:

That should give you the files in a specified folder. . . which you can test against.

Re: Get relative path

Posted: Sat Aug 03, 2013 1:24 am
by strangeChild
There's a primitive called 'Start Folder' - returns the location of the exe/plugin.

Re: Get relative path

Posted: Sat Aug 03, 2013 8:04 am
by TrojakEW
Oh I miss option for start folder primitive to set up path while testing inside flowstone. It works thanks for help.