Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Unified Diff: vpython/venv/system_windows.go

Issue 2699063004: vpython: Add VirtualEnv creation package. (Closed)
Patch Set: remake binaries Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: vpython/venv/system_windows.go
diff --git a/vpython/venv/system_windows.go b/vpython/venv/system_windows.go
new file mode 100644
index 0000000000000000000000000000000000000000..29b49e4ccc73ec0ee427b1c1424b086a64c65398
--- /dev/null
+++ b/vpython/venv/system_windows.go
@@ -0,0 +1,14 @@
+// Copyright 2017 The LUCI Authors. All rights reserved.
+// Use of this source code is governed under the Apache License, Version 2.0
+// that can be found in the LICENSE file.
+
+package venv
+
+import (
+ "path/filepath"
+)
+
+// venvBinPath resolves the path to a VirtualEnv binary.
+func venvBinPath(root, name string) string {
+ return filepath.Join(root, "Scripts", name)
iannucci 2017/02/23 00:54:21 wdyt about just having a `const BinDir = "Scripts"
dnj 2017/02/23 20:38:49 Meh, build-time is nicer, and I think this puts th
+}

Powered by Google App Engine
This is Rietveld 408576698