Skip to content

Commit

Permalink
Use pathlib in setupegg.py
Browse files Browse the repository at this point in the history
This is continuation of old change: ipython#12562
which was closed due to lack of traction.
Current commit has been formatted with darker as well
  • Loading branch information
Lightyagami1 committed Jan 31, 2021
1 parent 6760a46 commit b2ca9a6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions setupegg.py
Expand Up @@ -3,5 +3,7 @@

# Import setuptools and call the actual setup
import setuptools
with open('setup.py', 'rb') as f:
exec(compile(f.read(), 'setup.py', 'exec'))
from pathlib import Path

f = Path("setup.py")
exec(compile(f.read_text(), "setup.py", "exec"))

0 comments on commit b2ca9a6

Please sign in to comment.