Executing many python scripts via "execfile()" fails

640 Views Asked by At

I am using the matplotlib library for rendering charts and python-mapnik for maps out of a postgresql/postgis database. For each plot or map I use a single *.py script which works perfectly. However, if I run the python scripts from one single file (main.py) by using

execfile()

to execute all scripts via the commande line "main.py" crashes. I recognized that the CPU capacity drops and I have no clue how to solve this problem. It should be noted that there are some very large spatial queries which can take up to one minute.

I appreciate any help you can provide

0

There are 0 best solutions below