Skip to content

Commit

Permalink
Change python 2.7 to python 3 due to removal of python 2.7 in macOS 1…
Browse files Browse the repository at this point in the history
…2.3 (#35)
  • Loading branch information
yoonjs2 authored Mar 15, 2022
1 parent aeb633f commit 319e74d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion builder/parallels/common/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func NewDriver() (Driver, error) {
"Parallels builder works only on \"darwin\" platform!")
}

cmd := exec.Command("/usr/bin/python", "-c", `import prlsdkapi`)
cmd := exec.Command("/usr/bin/python3", "-c", `import prlsdkapi`)
err := cmd.Run()
if err != nil {
return nil, fmt.Errorf(
Expand Down
2 changes: 1 addition & 1 deletion builder/parallels/common/driver_9.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ func (d *Parallels9Driver) SendKeyScanCodes(vmName string, codes ...string) erro

args := prepend(vmName, codes)
args = prepend(f.Name(), args)
cmd := exec.Command("/usr/bin/python", args...)
cmd := exec.Command("/usr/bin/python3", args...)
cmd.Stdout = &stdout
cmd.Stderr = &stderr
err = cmd.Run()
Expand Down
2 changes: 1 addition & 1 deletion builder/parallels/common/prltype.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import prlsdkapi
def main():
if len(sys.argv) < 3:
print "Usage: prltype VM_NAME SCANCODE..."
print("Usage: prltype VM_NAME SCANCODE...")
sys.exit(1)
vm_name = sys.argv[1]
Expand Down

0 comments on commit 319e74d

Please sign in to comment.