bskinn / stdio-mgr

Context manager for mocking/wrapping stdin/stdout/stderr
MIT License
14 stars 4 forks source link

De-complexify the osp.join in the version retrieval in setup.py #22

Closed bskinn closed 5 years ago

bskinn commented 5 years ago

Not this:

with open(osp.join(*["src", "stdio_mgr", "version.py"])) as f:
    exec(f.read())

This instead:

with open(osp.join("src", "stdio_mgr", "version.py")) as f:
    exec(f.read())