Skip to content

Instantly share code, notes, and snippets.

@tristansokol
Created April 6, 2018 16:54
Show Gist options
  • Save tristansokol/f2efad427e5cb8a1d3f897fd1d369e76 to your computer and use it in GitHub Desktop.
Save tristansokol/f2efad427e5cb8a1d3f897fd1d369e76 to your computer and use it in GitHub Desktop.
def main():
potential_roms = []
for path in sys.argv[1:]:
for base, _, files in os.walk(sys.argv[1]):
potential_roms.extend([os.path.join(base, file) for file in files])
print('Importing %i potential games...' % len(potential_roms))
retro.data.merge(*potential_roms, quiet=False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment