Skip to content

Instantly share code, notes, and snippets.

@ethanjurman
Created July 25, 2015 05:18
Show Gist options
  • Save ethanjurman/f090934895231e292867 to your computer and use it in GitHub Desktop.
Save ethanjurman/f090934895231e292867 to your computer and use it in GitHub Desktop.
config = argv[argv.index("--")+1:]
for i in range(len(config)):
if config[i] == "True":
print('change to True ++')
config[i] = True
elif config[i] == "False":
print('change to False --')
config[i] = False
try:
config[i] = float(config[i])
print('change to float 00')
except ValueError:
print('keep string')
pass
print(config)
creatureCreator(config)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment