jkahn / samyro

Samyro text generation kit built on RNNs.
MIT License
3 stars 1 forks source link

Add if/main idiom to all cli scripts #8

Closed wpm closed 8 years ago

wpm commented 8 years ago

Run the main() function if a cli script if launched as its own Python program.

This is helpful for IDEs like Pycharm, which require that you specify a script in your run configuration and not just a function inside a script.

The resolves Issue #4.