Skip to content

Instantly share code, notes, and snippets.

@bcho
Created November 12, 2014 06:04
Show Gist options
  • Select an option

  • Save bcho/87de29a77ff4bd402a34 to your computer and use it in GitHub Desktop.

Select an option

Save bcho/87de29a77ff4bd402a34 to your computer and use it in GitHub Desktop.
581c581
< moduleNames = [f for f in os.listdir(moduleDir) if f.endswith('gents.py') or f.endswith('search.py')]
---
> moduleNames = [f for f in os.listdir(moduleDir) if f.endswith('gents.py')]
667c667
< pass
---
> pass
\ No newline at end of file
186d185
< current_module = globals()
188c187
< if fn not in current_module:
---
> if fn not in dir(self):
190c189
< func = current_module[fn]
---
> func = fn
204c203
< if prob not in current_module or not prob.endswith('Problem'):
---
> if prob not in dir(self) or not prob.endswith('Problem'):
206c205
< self.searchType = current_module[prob]
---
> self.searchType = prob
655c654
< return len(bfs(prob))
---
> return len(bfs(prob))
\ No newline at end of file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment