def get_version():
    if getattr(sys, 'frozen', False):
        return _get_frozen_package_version()  # frozen/packaged

    return _calculate_source_version()  # unfrozen/running from source
Encode common content-transfer-encodings (base64, quopri, uuencode).
dataset/ETHPy150Open box/ClusterRunner/app/util/autoversioning.py/get_version--crossover with--dataset/ETHPy150Open babble/babble/include/jython/Lib/mimetools.py/encode