Skip to content

Commit

Permalink
Simplifies __init__
Browse files Browse the repository at this point in the history
  • Loading branch information
holm10 committed Mar 9, 2024
1 parent f4df41d commit 99fd589
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/uedge/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from .uedge import *
from os import path
from pathlib import Path
import uedge.checkver
from uedge import __path__

Expand All @@ -9,10 +8,8 @@

# Load the startup file .uedgerc.py from cwd or home.
#
_homepath = path.expanduser('~')
_homefile = Path('{}/.uedgerc.py'.format(_homepath))
_localpath = path.expanduser('.')
_localfile = Path('{}/.uedgerc.py'.format(_localpath))
_homefile = path.join(path.expanduser('~'), '.uedgerc.py')
_localfile = path.join(path.expanduser('.'), '.uedgerc.py')

if path.exists(_localfile):
with open(_localfile) as f:
Expand Down

0 comments on commit 99fd589

Please sign in to comment.