Skip to content

Commit

Permalink
Fix win build.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vipon committed May 19, 2024
1 parent 46ca2e9 commit 4c2f4f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion python/setupEnv/setupEnv
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,9 @@ class SetUpQueue:
if os.name == "nt":
# Previous installations can update user's PATH
env = dict(os.environ)
env['PATH'] = get_user_path()
for p in get_user_path().split(';'):
if not p in env['PATH']:
env['PATH'] = env['PATH'] + p + ';'
execCmd(args, env)

i.status = SetUpQueue.SetUpInstance.InstanceState.INSTALLED
Expand Down
4 changes: 2 additions & 2 deletions python/vpy/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

import subprocess
from . import cmd as cmd

GIT_BIN = 'git'

def clone(args: [str]):
args = [GIT_BIN, 'clone'] + args
subprocess.run(args)
cmd.execCmd(args, captureOut=True)

0 comments on commit 4c2f4f1

Please sign in to comment.