# if no version, then take the default one defined in the application
if isinstance(version, bool) or isinstance(version, str):
# in this case tag is mandatory, not debug, verbose, dev
- version = config.APPLICATION.tag
if 'debug' in config.APPLICATION:
debug = config.APPLICATION.debug
if 'verbose' in config.APPLICATION:
if 'hpc' in config.APPLICATION:
hpc = config.APPLICATION.hpc
+ # special case for which only the product name is mentionned
+ if isinstance(version, bool):
+ version = config.APPLICATION.tag
+
if isinstance(version, src.pyconf.Mapping):
dic_version = version
# Get the version/tag