>
> Woah, the tree really prevented me from seeing the forest here.
>

There are like 5000 solutions to this, I can probably just run them as 
subprocesses which they actually kind of are, so something like:

import subprocess 

subprocess.call("myscript.py", shell=True)

And then add to myscript.py:

#!/usr/bin/env python3

Thought then I'm not 100% I'll get a response from myscript.py. Other 
option: make it a package, them in my flask.py file:

import my_script as pkg

@app.route("/some_script")
def script1():
   response = pkg.main()

And then adapt my_script so that it is structure with a main() that will 
return a response if the fetch & update is successfull.

The code above isn't tested but rough outline of what would work.... dang I 
don't understand how I spent so long seing this a Flask problem while it's 
actually a fairly common python problem......


 
>

-- 
You received this message because you are subscribed to the Google Groups 
"pocoo-libs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/pocoo-libs.
For more options, visit https://groups.google.com/d/optout.

Reply via email to