diff options
author | John Vandenberg <jayvdb@gmail.com> | 2019-09-15 13:31:27 +0700 |
---|---|---|
committer | John Vandenberg <jayvdb@gmail.com> | 2019-09-15 13:45:07 +0700 |
commit | 4afbc568f24c6bed2287570a2b6a2010eaed80f1 (patch) | |
tree | ca72b32a3816deb0d9028eeb66685cc59d630ab5 | |
parent | 7ad4b322653fa849e8171b905baede5fc4469c07 (diff) |
test_present: Use sys.executable
Literal `python` may not exist.
Closes https://gitlab.freedesktop.org/xdg/pyxdg/issues/16
-rw-r--r-- | test/resources.py | 8 |
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> |