From 7cbe538e942e2ae753f83225f97c8dc22cbd4817 Mon Sep 17 00:00:00 2001 From: Nikolay Amiantov Date: Sat, 18 Feb 2017 23:14:07 +0300 Subject: [PATCH] pythonPackages.wrapPython: fix for paths with spaces --- pkgs/development/interpreters/python/wrap.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/interpreters/python/wrap.sh b/pkgs/development/interpreters/python/wrap.sh index f4b63b82640..55998bc5b41 100644 --- a/pkgs/development/interpreters/python/wrap.sh +++ b/pkgs/development/interpreters/python/wrap.sh @@ -47,7 +47,7 @@ wrapPythonProgramsIn() { buildPythonPath "$pythonPath" # Find all regular files in the output directory that are executable. - for f in $(find "$dir" -type f -perm -0100); do + find "$dir" -type f -perm -0100 -print0 | while read -d "" f; do # Rewrite "#! .../env python" to "#! /nix/store/.../python". # Strip suffix, like "3" or "2.7m" -- we don't have any choice on which # Python to use besides one with this hook anyway.