-
-
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.
make it easier to run tests on win32:
* create a Python_execfile.exe utility * bundle the tests if requested at build time (but not compiled or compressed in the library.zip) git-svn-id: https://xpra.org/svn/Xpra/trunk@5369 3bb7dfac-3a0b-4e04-842a-767bc560f471
- Loading branch information
Showing
4 changed files
with
42 additions
and
1 deletion.
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
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
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/usr/bin/env python | ||
|
||
# simple wrapper script so we can launch a script file with the same python interpreter | ||
# and environment which is used by the xpra.exe / xpra_cmd.exe process. | ||
# | ||
# normally, the py2exe win32 platform code redirects the output to a log file | ||
# this script disables that. | ||
|
||
import os.path | ||
import sys | ||
from xpra.platform.win32 import set_redirect_output | ||
set_redirect_output(False) | ||
|
||
try: | ||
import win32api #@UnresolvedImport | ||
win32api.SetConsoleTitle("Python") | ||
except: | ||
pass | ||
|
||
|
||
if len(sys.argv)<2: | ||
print("you must specify a python script file to run!") | ||
sys.exit(1) | ||
filename = sys.argv[1] | ||
if not os.path.exists(filename): | ||
print("script file '%s' not found" % filename) | ||
sys.exit(1) | ||
execfile(filename) | ||
sys.exit(0) |