Skip to content

Project directories with multiple projects #5

Answered by iils-dkaiser
dkaiser59 asked this question in Q&A
Discussion options

You must be logged in to vote

There are two ways of accessing a project and the project directory:

  • the project().projectDir method always gives you the directory of the project your rule/program is placed into
  • G.project.projectDir gives you the directory of the project that is currently executed

So if your executing projectB and want to access files from projectA, you could add an operation inside a rule in projectA like getProjectADirectory : String that returns project.projectDir.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by iils-dkaiser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants