Skip to content

Commit 8c621da

Browse files
committed
setup.py: construct req.txt path absolutely
1 parent 1fb4c7b commit 8c621da

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
#!/usr/bin/python3
22

3+
import os
34

45
from setuptools import setup, find_packages
56

67

78
def get_requirements():
8-
path = 'requirements.txt'
9+
this_dir = os.path.abspath(os.path.dirname(__file__))
10+
path = os.path.join(this_dir, 'requirements.txt')
911
try:
1012
with open(path) as f:
1113
packages = f.read().splitlines()

0 commit comments

Comments
 (0)