From 0ba47c1bcdb02e8ea87a7bf58304a4efd7e93cd5 Mon Sep 17 00:00:00 2001 From: Rufus31415 Date: Fri, 24 May 2024 23:26:47 +0200 Subject: [PATCH] update setup.py --- setup.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 2532e9d..5dd4577 100644 --- a/setup.py +++ b/setup.py @@ -1,9 +1,12 @@ import setuptools +import os with open('README.md', "r", encoding="utf-8") as fh: long_description = fh.read() -with open('underautomation/universal_robots/lib/version.txt', "r", encoding="utf-8") as fh: +version_file = os.path.realpath(os.path.join(os.path.dirname(__file__), "underautomation", 'universal_robots', 'lib', 'version.txt')) + +with open(version_file, "r", encoding="utf-8") as fh: version = fh.read() setuptools.setup( @@ -28,7 +31,8 @@ ], include_package_data=True, package_data={"": [ - "universal_robots/lib/*.dll" + "universal_robots/lib/*.dll", + "universal_robots/lib/*.txt" ]} )