Commits

Ian Bicking committed 61b121f

fix problem with --relocate when bin/ has subdirs (fixes #12)

Comments (0)

Files changed (2)

 * Create the ``virtualenv`` script even when Setuptools isn't
   installed
 
+* Fix problem with ``virtualenv --relocate`` when ``bin/`` has
+  subdirectories (e.g., ``bin/.svn/``); from Alan Franzoni.
+
 1.4.3
 ~~~~~
 
     bin_dir = os.path.join(home_dir, 'bin')
     for filename in os.listdir(bin_dir):
         filename = os.path.join(bin_dir, filename)
+        if not os.path.isfile(filename):
+            # ignore subdirs, e.g. .svn ones.
+            continue
         f = open(filename, 'rb')
         lines = f.readlines()
         f.close()