Anonymous committed e4fb3ff

Allow importing version and appName from Only check for '--help' when we're called as main file and define appName for the whole module.

Comments (0)

Files changed (1)

 #: The PyRad version identifier
 __version__ = "0.3.3"
+appName = "pyRad"
 ### Commandline handling ###
 # we do this here to have the maximum reaction time. 
 from sys import argv
-if "--help" in argv:
+if __name__ == "__main__" and "--help" in argv:
     print __usage__
 def createAboutData():
     """Create the aboutData for PyRad."""
-    appName     = "pyRad"
+    #appName     = "pyRad"
     catalog     = ""
     programName = ki18n ("Rad")
     version     = __version__