Skip to content

Commit

Permalink
Bug fix to allow the script to be run from outside psy-simple
Browse files Browse the repository at this point in the history
  • Loading branch information
Chilipp committed Apr 3, 2017
1 parent 6b0e96b commit 41e9f7a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@
from setuptools.command.test import test as TestCommand
import sys

setup_dir = osp.dirname(__file__)

# is set down below
__version__ = None


def readme():
with open('README.rst') as f:
with open(osp.join(setup_dir, 'README.rst')) as f:
return f.read()


Expand All @@ -25,7 +30,7 @@ def run_tests(self):


# read the version from version.py
with open(osp.join('psy_simple', 'version.py')) as f:
with open(osp.join(setup_dir, 'psy_simple', 'version.py')) as f:
exec(f.read())


Expand Down

0 comments on commit 41e9f7a

Please sign in to comment.