--- /dev/null
+diff --git a/Misc/python-config.sh.in b/Misc/python-config.sh.in
+index 2602fe24..3c1fd243 100644
+--- a/Misc/python-config.sh.in
++++ b/Misc/python-config.sh.in
+@@ -1,4 +1,5 @@
+ #!/bin/sh
++PATH=/bin:/usr/bin:/sbin:/usr/sbin
+
+ # Keep this script in sync with python-config.in
+
Source9: import_failed.py
Source10: import_failed.map
Source11: add_pie_compile_option.patch
+Source12: add_path_environment.patch
# The following files are not used in the build.
%prep
%setup -q -n %{tarname}
%{__patch} -p1 < %{SOURCE11}
+%{__patch} -p1 < %{SOURCE12}
### COMMON-PREP-BEGIN ###
Source0: http://www.python.org/ftp/python/%{version}/%{tarname}.tar.xz
#Source1: http://www.python.org/ftp/python/%{version}/%{tarname}.tar.xz.asc
Source10: add_pie_compile_option.patch
+Source11: add_path_environment.patch
BuildRequires: automake
BuildRequires: fdupes
%prep
%setup -q -n %{tarname}
%{__patch} -p1 < %{SOURCE10}
+%{__patch} -p1 < %{SOURCE11}
### COMMON-PREP-BEGIN ###