Skip to content

Commit 8039113

Browse files
committed
✨ read relative files, fix #11
1 parent 79d6afa commit 8039113

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

templates/setup.py.jj2

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,8 @@ def read_files(*files):
211211

212212
def read(afile):
213213
"""Read a file into setup"""
214-
with codecs.open(afile, 'r', 'utf-8') as opened_file:
214+
the_relative_file = os.path.join(HERE, afile)
215+
with codecs.open(the_relative_file, 'r', 'utf-8') as opened_file:
215216
content = filter_out_test_code(opened_file)
216217
content = "".join(list(content))
217218
return content

0 commit comments

Comments
 (0)