Commits

Jason R. Coombs committed 80dcac9

Added support for py2exe in namespace package

  • Participants
  • Parent commits 854dcd1

Comments (0)

Files changed (1)

File jaraco/__init__.py

 # this is a namespace package
-__import__('pkg_resources').declare_namespace(__name__)
+__import__('pkg_resources').declare_namespace(__name__)
+
+try:
+	# py2exe support
+	import modulefinder
+	for p in __path__:
+		modulefinder.AddPackagePath(__name__, p)
+except ImportError:
+	pass