Commits

Jason R. Coombs committed 1a9d769

Updated namespace package to support py2exe

  • Participants
  • Parent commits eb0b142

Comments (0)

Files changed (1)

jaraco/__init__.py

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