Skip to content

Commit 0df08ab

Browse files
committed
Replace PPSTACK_PYTHONEXE with VS Code variable
1 parent d507e49 commit 0df08ab

File tree

3 files changed

+14
-26
lines changed

3 files changed

+14
-26
lines changed

.vscode/tasks.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"env": {
1818
"UNATTENDED": "1",
1919
"PYTHONUTF8": "1",
20-
"PYTHON": "${env:PPSTACK_PYTHONEXE}",
20+
"PYTHON": "${command:python.interpreterPath}",
2121
}
2222
},
2323
"group": {
@@ -46,7 +46,7 @@
4646
"cwd": "scripts",
4747
"env": {
4848
"UNATTENDED": "1",
49-
"PYTHON": "${env:PPSTACK_PYTHONEXE}",
49+
"PYTHON": "${command:python.interpreterPath}",
5050
}
5151
},
5252
"group": {
@@ -74,7 +74,7 @@
7474
"cwd": "scripts",
7575
"env": {
7676
"UNATTENDED": "1",
77-
"PYTHON": "${env:PPSTACK_PYTHONEXE}",
77+
"PYTHON": "${command:python.interpreterPath}",
7878
}
7979
},
8080
"group": {
@@ -102,7 +102,7 @@
102102
"cwd": "scripts",
103103
"env": {
104104
"UNATTENDED": "1",
105-
"PYTHON": "${env:PPSTACK_PYTHONEXE}"
105+
"PYTHON": "${command:python.interpreterPath}"
106106
}
107107
},
108108
"group": {
@@ -133,7 +133,7 @@
133133
"cwd": "scripts",
134134
"env": {
135135
"UNATTENDED": "1",
136-
"PYTHON": "${env:PPSTACK_PYTHONEXE}",
136+
"PYTHON": "${command:python.interpreterPath}",
137137
}
138138
},
139139
"group": {
@@ -160,7 +160,7 @@
160160
"options": {
161161
"cwd": "scripts",
162162
"env": {
163-
"PYTHON": "${env:PPSTACK_PYTHONEXE}",
163+
"PYTHON": "${command:python.interpreterPath}",
164164
"UNATTENDED": "1"
165165
}
166166
},
@@ -213,7 +213,7 @@
213213
"cwd": "scripts",
214214
"env": {
215215
"UNATTENDED": "1",
216-
"PYTHON": "${env:PPSTACK_PYTHONEXE}",
216+
"PYTHON": "${command:python.interpreterPath}",
217217
}
218218
},
219219
"group": {
@@ -241,7 +241,7 @@
241241
"cwd": "scripts",
242242
"env": {
243243
"UNATTENDED": "1",
244-
"PYTHON": "${env:PPSTACK_PYTHONEXE}",
244+
"PYTHON": "${command:python.interpreterPath}",
245245
}
246246
},
247247
"group": {
@@ -264,7 +264,7 @@
264264
"options": {
265265
"cwd": "scripts",
266266
"env": {
267-
"PYTHON": "${env:PPSTACK_PYTHONEXE}",
267+
"PYTHON": "${command:python.interpreterPath}",
268268
"UNATTENDED": "1",
269269
}
270270
},
@@ -293,7 +293,7 @@
293293
"options": {
294294
"cwd": "scripts",
295295
"env": {
296-
"PYTHON": "${env:PPSTACK_PYTHONEXE}",
296+
"PYTHON": "${command:python.interpreterPath}",
297297
"UNATTENDED": "1",
298298
}
299299
},
@@ -326,7 +326,7 @@
326326
"options": {
327327
"cwd": "scripts",
328328
"env": {
329-
"PYTHON": "${env:PPSTACK_PYTHONEXE}",
329+
"PYTHON": "${command:python.interpreterPath}",
330330
"UNATTENDED": "1",
331331
}
332332
},
@@ -359,7 +359,7 @@
359359
"options": {
360360
"cwd": "scripts",
361361
"env": {
362-
"PYTHON": "${env:PPSTACK_PYTHONEXE}",
362+
"PYTHON": "${command:python.interpreterPath}",
363363
"UNATTENDED": "1",
364364
}
365365
},

doc/dev/contribute.rst

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,9 @@ development environment. The easiest way to do this is to use `virtualenv
9393
<http://pypi.python.org/pypi/virtualenv>`_ and `pip
9494
<http://pypi.python.org/pypi/pip>`_.
9595

96-
Some parameters are required to be set before using the project from within
97-
Visual Studio Code (used in `launch.json` and `tasks.json`). These are:
96+
Visual Studio Code `.env` file:
9897

99-
* ``PPSTACK_PYTHONEXE``: The path to the Python interpreter to use. This is
100-
used to run tasks from within Visual Studio Code. If not set,
101-
the default Python interpreter will be used.
102-
103-
* `.env` file: This file is used to set environment variables for the
98+
* This file is used to set environment variables for the
10499
application. It is used to set the ``PYTHONPATH`` environment variable to
105100
the root of the project. This is required to be able to import the project
106101
modules from within Visual Studio Code. To create this file, copy the

doc/dev/platforms.rst

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,6 @@ That's it, you can now run the tests using the following command:
7575
7676
pytest plotpy
7777
78-
If you want to rely on Visual Studio Code for editing and take advantage of the
79-
project settings and tasks, you will need to set the following environment variable:
80-
81-
.. code-block:: bash
82-
83-
set PPSTACK_PYTHONEXE=C:\WPy64-31110\python-3.11.1.amd64\python.exe
84-
8578
CentOS Stream 8.8
8679
^^^^^^^^^^^^^^^^^
8780

0 commit comments

Comments
 (0)