Validate wine architecture

This commit is contained in:
Mathieu Comandon 2014-01-25 02:23:00 +01:00
parent 537bd9873c
commit acc947552b

View file

@ -41,6 +41,8 @@ def wineexec(executable, args="", prefix=None, wine_path='wine', arch='win32'):
executable = str(executable) if executable else ""
if " " in executable:
executable = "\"%s\"" % executable
if arch not in ('win32', 'win64'):
raise ValueError("Invalid WINEARCH %s" % arch)
command = "WINEARCH=%s %s %s %s %s" % (
arch, prefix, wine_path, executable, args
)