Skip to content

Commit 3f408be

Browse files
committed
ci: fix requirements.txt not found in src during building
1 parent d49e53e commit 3f408be

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
import os
12
from setuptools import find_packages, setup
23

34

4-
def read_requirements(file):
5-
with open(file, "r") as f:
5+
def read_requirements(filename):
6+
with open(os.path.join(os.path.dirname(__file__), filename), "r") as f:
67
return [line.strip() for line in f if line and not line.startswith("#")]
78

89

0 commit comments

Comments
 (0)