Skip to content

Commit

Permalink
Merge pull request #29 from JacobKosowski/patch-2
Browse files Browse the repository at this point in the history
Update __init__.py
  • Loading branch information
gbrammer committed Mar 11, 2023
2 parents c9d4318 + d69aae0 commit f181bed
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions eazy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
import shutil

from . import igm
from . import param
Expand Down Expand Up @@ -120,7 +121,7 @@ def symlink_eazy_inputs(path='$EAZYCODE', get_hdfn_test_catalog=False, copy=Fals
# Templates directory
if os.path.exists('./templates'):
try:
os.remove('./templates')
shutil.rmtree('./templates')
except PermissionError:
os.system('rm -rf templates')

Expand All @@ -134,7 +135,7 @@ def symlink_eazy_inputs(path='$EAZYCODE', get_hdfn_test_catalog=False, copy=Fals

# Filter file
if os.path.exists('./FILTER.RES.latest'):
os.remove('./FILTER.RES.latest')
shutil.rmtree('./FILTER.RES.latest')

res_path = os.path.join(path, 'filters/FILTER.RES.latest')
if copy:
Expand Down

0 comments on commit f181bed

Please sign in to comment.