#python - Sat 14 Apr 2007 between 00:00 and 00:59

NY Lost Funds



ericmoritz\0ok, everything is maxed out with long running requests
thebananaericmoritz\0: are you using SCGIServerTimeout?
ericmoritz\0yeah but that only applies to trying to make the connection to the scgi server
besides, even when httpd severs the socket with SCGI, flup still allows the child to continue to execute
thebananayes but does it reconnect to mod_scgi?
ericmoritz\0no
thebananarather, what does it do after the view finishes and it no longer has a connection to apache?
ericmoritz\0ok, all the request show be timing out now, let's see if flup starts reaping children
yep, so far so good, the number of children is decreasing
back to normal
still seems like a problem with a view
thebananainteresting
HowDoIfinaly antena came in
im so happy yay
now i can further my progress in learning python
vaclavHey, can any Mac users help me use py2app?
evolvlngvaclav there's #macpython
vaclavOkay, thanks.
at0mikuHow would I make my python script restart itself?
arubin-restart itself?
at0mikuYeah
Exit the script, then run itself
I was thinking something like os.run("python /dir/to/script/script.py") or something
arubin-I believe that is typically accomplished by a secondary script that just runs the real script and restarts it when necessary
secondary script or program
at0mikuHmm
Perhaps I could have a script called delayrun.py
and the main script calls delayrun.py, then exits itself
delayrun would wait a second then run the mainscript then kill itself... sounds good to me
How do I get the directory the script is currently running from?
arubin-os.getcwd()
at0mikuarubin-: thanks :)
brb in a few minutes, trying this out.
actually
arubin-, is there a way to get the directory and the name of the python script?
arubin-http://www.faqs.org/docs/diveintopython/regression_path.html
at0mikuThanks :)
maryenhello
what would a linux equivalent of this code be?
http://deadbeefbabe.org/paste/4372

Page: 2 9 16 23 30 37 44 51 58 

IrcArchive

NY Lost Funds