Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is there a simple way to pipe input < to the script? #17

Open
srigsby opened this issue Nov 9, 2017 · 2 comments
Open

is there a simple way to pipe input < to the script? #17

srigsby opened this issue Nov 9, 2017 · 2 comments

Comments

@srigsby
Copy link

srigsby commented Nov 9, 2017

I like the python script.py < input.txt style on occasion

Obvious alternative: work the input file in as an argument,
just thought it might be obvious/doable itself :))

doesn't seem to work with 'livepython script.py < input.txt' just as a mention, it opens and steps through to the line with input() but the in isn't ... putting

@johndpope
Copy link

not an answer - but the electron may support this need to dig into piping data for electron

https://stackoverflow.com/questions/28946904/piping-data-from-child-to-parent-in-nodejs

ar args = process.argv.slice(2)

if (!args.length) {
  console.log("Usage: livepython [program] [..args]")
  process.exit()
}

args.unshift(__dirname + "/../tracer.py")

@johndpope
Copy link

screen shot 2018-06-20 at 12 20 51 pm
@roydhenderson created this code - looks like it's piping something to electron app .
https://github.com/mrdoomits/superluminous/blob/ad08321b463b6b31730873b08418ee2f2cd6cb28/electron_app/gulpfile.js

(no idea what gulp is)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants