Skip to content

Commit

Permalink
fixup! refactor: Use pathlib in tools/
Browse files Browse the repository at this point in the history
  • Loading branch information
mmtj committed Oct 25, 2023
1 parent 6130bcc commit 8646515
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/toollib.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ def get_ipdir():
ipdir = ipdir.resolve()

cd(ipdir)
if not Path('IPython').is_dir() and Path('setup.py').is_file():
raise SystemExit('Invalid ipython directory: %s' % ipdir)
if not Path("IPython").is_dir() and Path("setup.py").is_file():
raise SystemExit("Invalid ipython directory: %s" % ipdir)
return ipdir

def execfile(fname, globs, locs=None):
Expand Down

0 comments on commit 8646515

Please sign in to comment.