We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba4e6ca commit bae6642Copy full SHA for bae6642
1 file changed
pythonvenv.go
@@ -7,6 +7,7 @@ import (
7
8
"github.com/CREDOProject/go-pythonvenv/finder"
9
"github.com/CREDOProject/go-pythonvenv/utils"
10
+ "github.com/CREDOProject/sharedutils/files"
11
)
12
13
var (
@@ -31,9 +32,9 @@ func Create(path string) (*PythonVenv, error) {
31
32
}
33
34
func createVenv(path string) error {
- // if files.IsDir(path) {
35
- // return ErrAlreadyPresent
36
- // }
+ if files.IsDir(path) {
+ return ErrAlreadyPresent
37
+ }
38
v, err := finder.New().Find()
39
if err != nil {
40
return err
0 commit comments