from .cfg_app import PpCfgAppError, PpConfigApplication
-__version__ = '0.4.6'
+__version__ = '0.4.7'
LOG = logging.getLogger(__name__)
raise PpLdapAppError(msg)
stems.append(s)
else:
- stems = self.appname
+ stems = [self.appname]
if 'ldap' not in stems:
stems.insert(0, 'ldap')
from .errors import PpError
-
-__version__ = '0.2.3'
+__version__ = '0.2.4'
LOG = logging.getLogger(__name__)
@property
def appname(self):
"""The name of the current running application."""
- return self._appname
+ if hasattr(self, '_appname'):
+ return self._appname
+ return os.path.basename(sys.argv[0])
@appname.setter
def appname(self, value):
@property
def version(self):
"""The version string of the current object or application."""
- return self._version
+ return getattr(self, '_version', __version__)
# -----------------------------------------------------------
@property