From c86b8dd031a5e9f1b1d971455d00a1566fc40059 Mon Sep 17 00:00:00 2001 From: Christopher Neugebauer Date: Mon, 10 Jan 2022 09:48:33 -0800 Subject: [PATCH 1/2] Adds `.env` file to make vscode auto-imports work correctly out of the box # Rust tests and lints will be skipped. Delete if not intended. [ci skip-rust] # Building wheels and fs_util will be skipped. Delete if not intended. [ci skip-build-wheels] --- .env | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .env diff --git a/.env b/.env new file mode 100644 index 00000000000..a83b7eee190 --- /dev/null +++ b/.env @@ -0,0 +1,3 @@ +# Sets the python source roots in vscode to match Pants' repo layout + +PYTHONPATH=$PYTHONPATH:src/python From 51edd8afa4b27f648850d9283008f48ce95aef6b Mon Sep 17 00:00:00 2001 From: Christopher Neugebauer Date: Mon, 10 Jan 2022 10:27:36 -0800 Subject: [PATCH 2/2] Updates comment # Rust tests and lints will be skipped. Delete if not intended. [ci skip-rust] # Building wheels and fs_util will be skipped. Delete if not intended. [ci skip-build-wheels] --- .env | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.env b/.env index a83b7eee190..3470d07c82e 100644 --- a/.env +++ b/.env @@ -1,3 +1,5 @@ # Sets the python source roots in vscode to match Pants' repo layout +# Unless it turns out some other IDE relies on this, this file can +# be removed once #10920 is solved. PYTHONPATH=$PYTHONPATH:src/python