Project directory

Kind of the opposite of this, I would like to get the path to the directory that my project is in.

Example: D:\Ignition\data\projects\MyProject

I have some files that I keep in there under version management to give me the rev o f the build etc., and would like to be able to read them.

Thanks!

The code Nick posted in that thread does resolve the projects directory (assuming it’s not overridden by a system property). Just go a step further into your project if you need to.

That code is returning

d:/Ignition/data/projects

I am looking for the actual folder my project is in:

D:\Ignition\data\projects\MyProject

Thanks

Add the output of system.util.getProjectName().

That did it, thanks Phil!