Skip to content

Commit 455bc6c

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

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

setup.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,13 @@
88

99

1010
def read(fname):
11-
with open(os.path.join(__here__, fname)) as f:
11+
with __here__ / fname as f:
1212
return f.read()
1313

1414

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

17-
with __here__ / "WrightSim" / "VERSION" as version_file:
18-
version = version_file.read_text().strip()
1918

2019
setup(
2120
name="WrightSim",

0 commit comments

Comments
 (0)