summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/resources.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/resources.py b/test/resources.py
index aa1a071..e2d35a8 100644
--- a/test/resources.py
+++ b/test/resources.py
@@ -4,6 +4,8 @@ written out to temporary files for the relevant tests.
"""
from __future__ import unicode_literals
+import sys
+
# With additions from firefox.desktop, to test locale & unicode support
gedit_desktop = """[Desktop Entry]
Name=gedit
@@ -75,10 +77,10 @@ Type=Application
python_desktop = """[Desktop Entry]
Name=Python
Comment=Dynamic programming language
-Exec=python
-TryExec=python
+Exec=%s
+TryExec=%s
Type=Application
-"""
+""" % (sys.executable, sys.executable)
recently_used = """<?xml version="1.0"?>
<RecentFiles>