Skip to content

Commit 0ba47c1

Browse files
committed
update setup.py
1 parent 80d8420 commit 0ba47c1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

setup.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
import setuptools
2+
import os
23

34
with open('README.md', "r", encoding="utf-8") as fh:
45
long_description = fh.read()
56

6-
with open('underautomation/universal_robots/lib/version.txt', "r", encoding="utf-8") as fh:
7+
version_file = os.path.realpath(os.path.join(os.path.dirname(__file__), "underautomation", 'universal_robots', 'lib', 'version.txt'))
8+
9+
with open(version_file, "r", encoding="utf-8") as fh:
710
version = fh.read()
811

912
setuptools.setup(
@@ -28,7 +31,8 @@
2831
],
2932
include_package_data=True,
3033
package_data={"": [
31-
"universal_robots/lib/*.dll"
34+
"universal_robots/lib/*.dll",
35+
"universal_robots/lib/*.txt"
3236
]}
3337
)
3438

0 commit comments

Comments
 (0)