Created
July 25, 2015 05:18
-
-
Save ethanjurman/f090934895231e292867 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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