Skip to content

Commit

Permalink
setup now uses _script_path()
Browse files Browse the repository at this point in the history
  • Loading branch information
madsbk committed Apr 28, 2017
1 parent fd55046 commit fa61c2d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,16 @@
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
import os


def _script_path():
"""Returns the path to the dir this script is in"""
return os.path.dirname(os.path.realpath(__file__))

here = path.abspath(path.dirname(__file__))

# Get the long description from the README file
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
with open(os.path.join(_script_path(), 'README.rst'), encoding='utf-8') as f:
long_description = f.read()

setup(
Expand Down

0 comments on commit fa61c2d

Please sign in to comment.