diff --git a/python-EasyProcess.changes b/python-EasyProcess.changes index 664de2f..03ffc8b 100644 --- a/python-EasyProcess.changes +++ b/python-EasyProcess.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Sep 15 03:11:23 UTC 2019 - John Vandenberg + +- Fix examples to use sys.executable + ------------------------------------------------------------------- Mon Jun 17 12:15:09 UTC 2019 - Tomáš Chvátal diff --git a/python-EasyProcess.spec b/python-EasyProcess.spec index 9ad232c..0365cb8 100644 --- a/python-EasyProcess.spec +++ b/python-EasyProcess.spec @@ -59,10 +59,16 @@ Limitations: %prep %setup -q -n EasyProcess-%{version} +# https://github.com/ponty/EasyProcess/issues/18 +sed -i "s/from easyprocess import EasyProcess/from easyprocess import EasyProcess;import sys/" easyprocess/examples/*.py +sed -i "s/'python /sys.executable + ' /" easyprocess/examples/*.py +sed -i "s/'python'/sys.executable/" easyprocess/examples/*.py + # requires pyvirtualdisplay which is mostly dead package rm -f tests/coverage/fast/test_deadlock.py 2to3 -w easyprocess/examples/log.py + %build %python_build