Page 3 of 3

Re: Once again down that hole

PostPosted: Fri Jun 28, 2019 8:39 am
by FlyingDiver
The first is correct. You don't put quotes around the name of a variable.

Re: Once again down that hole

PostPosted: Fri Jun 28, 2019 8:43 am
by jay (support)
Different Computers wrote:
And it seems faster than using wget. I was able to reduce the wait states, and even went ahead and changed all the other cameras over to use this new code.


It's almost always faster to do things using Python directly than spawning separate processes (using popen or whatever). Starting up and shutting down a process is time intensive, and there's rarely a reason to do it when using Python as you can do almost anything directly from Python.