Skip to content

Commit

Permalink
pass list into max, rather than using *args
Browse files Browse the repository at this point in the history
Attempts to fix windows build
  • Loading branch information
karlnapf committed Apr 26, 2017
1 parent 3fa23c8 commit 8f97f12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shogun/base/class_list.cpp.py
Expand Up @@ -115,7 +115,7 @@ def get_includes(classes, headers_absolute_fnames):
if class_from_header in c:
# find last occurence of "shogun" dir in header
h_split = h.split(os.sep)
idx = max(loc for loc, val in enumerate(h_split) if val == 'shogun')
idx = max([loc for loc, val in enumerate(h_split) if val == 'shogun'])

# thats your include header
includes.append("#include <%s>" % os.sep.join(h_split[idx:]))
Expand Down

0 comments on commit 8f97f12

Please sign in to comment.