ancient-vegetable-10556
01/10/2022, 5:24 PM.env
file?bitter-ability-32190
01/10/2022, 5:30 PMancient-vegetable-10556
01/10/2022, 5:32 PM.env
file for my own use, which actually fixes the issue. I’m just wondering if anyone’s fixed it by means that don’t mean committing a new file or adding to .gitignorebitter-ability-32190
01/10/2022, 5:33 PMancient-vegetable-10556
01/10/2022, 5:35 PMbitter-ability-32190
01/10/2022, 5:39 PM.vscode
globally across my machineancient-vegetable-10556
01/10/2022, 5:54 PMfresh-cat-90827
01/10/2022, 7:33 PM.env
file is updated accordingly (to keep VSCode users happy) 🙂
$ ROOTS=$(./pants roots --roots-sep=' ')
$ python3 -c "print('PYTHONPATH=\"./' + ':./'.join(\"${ROOTS}\".split()) + ':\$PYTHONPATH\"')"
if there are three dirs in the root, projectA
, projectB
, projectC
, you’ll get
PYTHONPATH="./projectA:./projectB:./projectC:$PYTHONPATH"
ancient-vegetable-10556
01/10/2022, 9:02 PMhundreds-father-404
01/13/2022, 6:02 PMfresh-cat-90827
01/13/2022, 7:57 PMhundreds-father-404
01/13/2022, 8:16 PMfresh-cat-90827
01/13/2022, 9:01 PMfresh-cat-90827
01/14/2022, 10:23 AM