Ali
Ali

Reputation: 1533

Set Variable Path in Pycharm or export interpreter

Is there a way to set a variable path in pycharm like Idea ?

My goal is to be able to use this variable in the Paths tab of a python interpreter. As it is now, I have to enter custom paths specific to my machine any time I want to setup this interpreter on a new machine.

Any solutions ?

Upvotes: 2

Views: 1036

Answers (1)

CrazyCoder
CrazyCoder

Reputation: 402581

Python interpreter is referenced by its name in the project file (.idea/misc.xml). The actual elements of the Paths are not stored in the project, but inside the user specific PyCharm configuration directory (~/.PyCharm20/config/options/jdk.table.xml).

Path Variables feature affects only project files, so it will not help here. You still have to define the interpreter Paths again on each machine as it's system IDE configuration, not project.

Upvotes: 1

Related Questions