Skip to content

Commit

Permalink
setup.py: construct req.txt path absolutely
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasTomecek committed Nov 12, 2015
1 parent 1fb4c7b commit 8c621da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
#!/usr/bin/python3

import os

from setuptools import setup, find_packages


def get_requirements():
path = 'requirements.txt'
this_dir = os.path.abspath(os.path.dirname(__file__))
path = os.path.join(this_dir, 'requirements.txt')
try:
with open(path) as f:
packages = f.read().splitlines()
Expand Down

0 comments on commit 8c621da

Please sign in to comment.