From d7ab6f2001b5b9ea0dec3362abab161a69de7212 Mon Sep 17 00:00:00 2001 From: fyodor Date: Sat, 12 Apr 2014 06:12:01 +0000 Subject: [PATCH] I think INSTALL_LIB should be set to None by default so it is only used if the installer has set it to something specific. Otherwise I run into issues on Windows --- ndiff/scripts/ndiff | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ndiff/scripts/ndiff b/ndiff/scripts/ndiff index 07fe8ccc9..05945fba1 100755 --- a/ndiff/scripts/ndiff +++ b/ndiff/scripts/ndiff @@ -61,7 +61,7 @@ def is_secure_dir(path, num_symlinks=0): # Add the install_lib directory to sys.path, the list of directories searched # for modules, but don't do it if the directory or its parents may be writable # by other users. The following line is replaced by the installation program. -INSTALL_LIB = '/usr/local/lib/python2.7/site-packages/' +INSTALL_LIB = None if INSTALL_LIB is not None and is_secure_dir(INSTALL_LIB): sys.path.append(INSTALL_LIB)