Setting $Projectpath$

I have projects that are created from existing source and for which I would like to run external tools.  The trouble is that the external tools are now hard-coded to certain paths, but as I start running out of multiple different branches, those hard-coded paths no longer make sense.  The list of macros for external tools include something called 'Projectpath'.  Although this sounds like exactly what I need, the property is blank, and I can't find a way to set it.  Is this exposed somewhere to be set?

  -- Scott

6 comments
Comment actions Permalink

Hi Scott,

Try $ProjectFileDir$ instead. The $Projectpath$ works completely differently and not really available for PhpStorm (will contain a list of folders (full paths separated by ;) that are marked as Test Root and Source Root).

0
Comment actions Permalink

That sounds like good advice.  However... how do I set that value?  It is blank in my project (created from existing source).

0
Comment actions Permalink

1) Which variable exactly? $ProjectFileDir$ ? It alwys has some value (at least for me).

2) All those variables are calculated automatically -- there is no special screen where you can enter custom value to any of those variables.

0
Comment actions Permalink

Never mind.  I was opening an existing dir rather than creating a project.  Thanks.

  -- Scott

0
Comment actions Permalink

Andriy,

Thanks for your help!

I have submitted an issue about this misleading macro - http://youtrack.jetbrains.net/issue/WI-8229

0
Comment actions Permalink

Thank you very much.

0

Please sign in to leave a comment.