Skip to content

Commit

Permalink
Merge pull request #9 from paololu/main
Browse files Browse the repository at this point in the history
fix: check python package in windows
  • Loading branch information
debugtalk authored Jan 18, 2024
2 parents 4737ae5 + 45497a4 commit f96e349
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion myexec/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func ExecPython3Command(cmdName string, args ...string) error {

func AssertPythonPackage(python3 string, pkgName, pkgVersion string) error {
out, err := Command(
python3, "-c", fmt.Sprintf("import %s; print(%s.__version__)", pkgName, pkgName),
python3, "-c", fmt.Sprintf("\"import %s; print(%s.__version__)\"", pkgName, pkgName),
).Output()
if err != nil {
return fmt.Errorf("python package %s not found", pkgName)
Expand Down

0 comments on commit f96e349

Please sign in to comment.