Setting $Projectpath$ Follow
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
Please sign in to leave a comment.
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).
That sounds like good advice. However... how do I set that value? It is blank in my project (created from existing source).
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.
Never mind. I was opening an existing dir rather than creating a project. Thanks.
-- Scott
Andriy,
Thanks for your help!
I have submitted an issue about this misleading macro - http://youtrack.jetbrains.net/issue/WI-8229
Thank you very much.