diff --git a/setup.py b/setup.py index 8d88e42..d534382 100755 --- a/setup.py +++ b/setup.py @@ -1,13 +1,17 @@ #!/usr/bin/env python3 -from setuptools import setup import os + +from setuptools import setup + PLUGIN_ENTRY_POINT = 'ovos-stt-plugin-chromium = ovos_stt_plugin_chromium:ChromiumSTT' CONFIG_ENTRY_POINT = 'ovos-stt-plugin-chromium.config = ovos_stt_plugin_chromium:ChromiumSTTConfig' +BASEDIR = os.path.abspath(os.path.dirname(__file__)) + + def get_version(): """ Find the version of the package""" - version = None - version_file = os.path.join('ovos_stt_plugin_chromium', 'version.py') + version_file = f'{BASEDIR}/ovos_stt_plugin_chromium/version.py' print(f"ERROR: version file: {version_file}") major, minor, build, alpha = (None, None, None, None) with open(version_file) as f: @@ -30,7 +34,6 @@ def get_version(): return version - setup( name='ovos-stt-plugin-chromium', version='0.1.1',