INNER CODE UNIT · Python
check_stdin
HyperGAN/HyperGAN · hypergan/cli.py:188
def check_stdin(self):
try:
input = sys.stdin.read()
if input[0]=="y":
return
from IPython import embed
# Misc code
embed()
except:
return
def new(self):
if self.args.toml:
config_format = '.toml'
else:
config_format = '.json'
template = self.args.directory + config_format