Skip to content

Commit fc0e21d

Browse files
committed
Update setup.py
1 parent 455bc6c commit fc0e21d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
__here__ = pathlib.Path(__file__).parent
88

99

10-
def read(fname):
11-
with __here__ / fname as f:
10+
def read(path):
11+
with path as f:
1212
return f.read()
1313

1414

1515
extra_files = {"WrightSim": ["VERSION"]}
16-
version = read("WrightSim" / "VERSION").read_text().strip()
16+
version = read(__here__ / "WrightSim" / "VERSION").read_text().strip()
1717

1818

1919
setup(
@@ -39,7 +39,7 @@ def read(fname):
3939
},
4040
version=version,
4141
description="A simulation package for multidimensional spectroscopy.",
42-
long_description=read("README.rst"),
42+
long_description=read(__here__ / "README.rst"),
4343
long_description_content_type="text/x-rst",
4444
author="WrightSim Developers",
4545
license="MIT",

0 commit comments

Comments
 (0)