Author: reinhard
Date: 2009-10-09 06:41:05 -0500 (Fri, 09 Oct 2009)
New Revision: 9951
Modified:
trunk/gnue-common/src/base/setup.py
Log:
Fix for importing package info.
Modified: trunk/gnue-common/src/base/setup.py
===================================================================
--- trunk/gnue-common/src/base/setup.py 2009-10-09 07:46:49 UTC (rev 9950)
+++ trunk/gnue-common/src/base/setup.py 2009-10-09 11:41:05 UTC (rev 9951)
@@ -126,9 +126,9 @@
# Import the package root module
# -----------------------------------------------------------------------------
-if __name__ == '__main__':
+try:
import src as package_info
-else:
+except ImportError:
package_info = object() # Fake object to make epydoc happy
package_info.PACKAGE = ""
package_info.TITLE = ""
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.