-
-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: https://xpra.org/svn/Xpra/trunk@19815 3bb7dfac-3a0b-4e04-842a-767bc560f471
- Loading branch information
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/usr/bin/env python | ||
# This file is part of Xpra. | ||
# Copyright (C) 2016-2017 Antoine Martin <[email protected]> | ||
# Copyright (C) 2016-2018 Antoine Martin <[email protected]> | ||
# Xpra is released under the terms of the GNU GPL v2, or, at your option, any | ||
# later version. See the file COPYING for details. | ||
|
||
|
@@ -11,7 +11,7 @@ | |
import unittest | ||
import subprocess | ||
from xpra.util import envbool, envint, repr_ellipsized | ||
from xpra.os_util import OSEnvContext, pollwait, osexpand, POSIX, WIN32 | ||
from xpra.os_util import OSEnvContext, pollwait, osexpand, bytestostr, POSIX, WIN32 | ||
from xpra.scripts.config import get_defaults | ||
from xpra.platform.dotxpra import DotXpra | ||
from xpra.platform.paths import get_xpra_command | ||
|
@@ -98,7 +98,7 @@ def run_xpra(cls, xpra_args, env=None, **kwargs): | |
xpra_cmd = [cls.which("xpra")] | ||
cmd = xpra_cmd + cls.default_xpra_args + xpra_args | ||
pyexename = "python%i" % sys.version_info[0] | ||
exe = xpra_cmd[0] | ||
exe = bytestostr(xpra_cmd[0]) | ||
if exe.endswith(pyexename): | ||
pass | ||
elif WIN32 and exe.endswith("%s.exe" % pyexename): | ||
|