Jason R. Coombs committed b7d3dbc

Found a public API method which is preferable to using the private attribute for ascertaining the location of the gen_py cache

  • Participants
  • Parent commits 719910d
  • Branches 0.6-maintenance

Comments (0)

Files changed (1)

File setuptools/

     _EXCEPTIONS = []
-	import win32com
-	_EXCEPTIONS.append(win32com.__gen_path__)
+	from win32com.client.gencache import GetGeneratePath
+	_EXCEPTIONS.append(GetGeneratePath())
+	del GetGeneratePath
 except ImportError:
 	# it appears pywin32 is not installed, so no need to exclude.
-except AttributeError:
-	# it appears __gen_path__ is not available, so fail silently
-	pass
 class DirectorySandbox(AbstractSandbox):
     """Restrict operations to a single subdirectory - pseudo-chroot"""