Skip to content

Commit

Permalink
Fixed issue with flopy import of is_exe
Browse files Browse the repository at this point in the history
  • Loading branch information
jdhughes-usgs committed Dec 19, 2016
1 parent 2f75335 commit 1d6257c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pymake/pymake.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
from .dag import order_source_files, order_c_source_files
import datetime

from flopy import is_exe as flopy_is_exe

def parser():
'''
Construct the parser and return argument values
Expand Down Expand Up @@ -620,7 +622,7 @@ def compile_with_ifort(srcfiles, target, cc, objdir_temp, moddir_temp,
try:
# clean exe prior to build so that test for exe below can return a
# non-zero error code
if flopy.is_exe(target):
if flopy_is_exe(target):
os.remove(target)
makebatch(batchfile, fc, cc, fflags, cflags, srcfiles, target,
arch, objdir_temp, moddir_temp)
Expand All @@ -636,7 +638,7 @@ def compile_with_ifort(srcfiles, target, cc, objdir_temp, moddir_temp,
print('{}'.format(c))
else:
break
if not flopy.is_exe(target):
if not flopy_is_exe(target):
return 1
except:
print('Could not make x64 target: ', target)
Expand Down

0 comments on commit 1d6257c

Please sign in to comment.