Skip to content
This repository was archived by the owner on Mar 27, 2019. It is now read-only.

Commit 1154e27

Browse files
committed
HACK: force pipenv to create venvs (right now for tests)
1 parent e5807b2 commit 1154e27

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

langserver/clone_workspace.py

+7
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,13 @@ def run_command(self, command, no_prefix=False, **kwargs):
183183
'''
184184
kwargs["cwd"] = self.CLONED_PROJECT_PATH
185185

186+
# HACK: this is to get our spawned pipenv to keep creating
187+
# venvs even if the language server itself is running inside one
188+
189+
env = kwargs.get("env", {})
190+
env["VIRTUAL_ENV"] = ""
191+
kwargs["env"] = env
192+
186193
# add pipenv prefix
187194
if not no_prefix:
188195
if type(command) is str:

0 commit comments

Comments
 (0)