proton: Fix translatepath verbs

This commit is contained in:
Andrew Eikum 2018-02-26 08:44:11 -06:00
parent b782a37bf1
commit 37eb221d95

4
proton
View File

@ -296,11 +296,11 @@ if sys.argv[1] == "run":
elif sys.argv[1] == "getcompatpath":
#linux -> windows path
path = subprocess.check_output([wine_path, "winepath", "-w", sys.argv[2]], env=env, stderr=open("/dev/null", "w"))
stdout.write(path)
sys.stdout.write(path)
elif sys.argv[1] == "getnativepath":
#windows -> linux path
path = subprocess.check_output([wine_path, "winepath", sys.argv[2]], env=env, stderr=open("/dev/null", "w"))
stdout.write(path)
sys.stdout.write(path)
else:
log("Need a verb.")
sys.exit(1)