Skip to content

Commit

Permalink
FIX: Broken paths in setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
d-Rickyy-b committed Sep 2, 2019
1 parent bda3c7e commit 42eca9b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ def requirements():
return requirements_list


with open("README.md", "r", encoding="utf-8") as file:
setup_path = os.path.dirname(os.path.abspath(__file__))

with open(os.path.join(setup_path, "README.md"), "r", encoding="utf-8") as file:
readme = file.read()

# If present, take tag from travis and not locally
Expand All @@ -30,7 +32,7 @@ def requirements():
else:
# Taken from https://packaging.python.org/guides/single-sourcing-package-version/
version_dict = {}
version_file = os.path.join('pastepwn', 'version.py')
version_file = os.path.join(setup_path, 'pastepwn', 'version.py')
with open(version_file, "r", encoding="utf-8") as file:
exec(file.read(), version_dict)
version = version_dict['__version__']
Expand Down

0 comments on commit 42eca9b

Please sign in to comment.