Hi,
No need for a workaround. You can achieve all this using property sheets.
Create a new property sheet (go to Property Manager window / Add New Project Property Sheet). Open up the Property Pages by double clicking the property sheet. Here, create a new macro (User Macros / Add Macro). Name if PYTHON_HOME and set it to your current path.
You can now include this property sheet in all your project and configurations. You can reference $(PYTHON_HOME) in all your settings and it will expand to the path you specified.
When moving your project to a different machine, the only location you need to change if the path changed is the property sheet file.
Hope this helps, Marian Luparu Visual C++ IDE
|