blob: 14662d4642e34f61b16db92b8b589ca8b32e33f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
--- index.py.orig 2013-07-30 22:38:28.176512814 +0200
+++ index.py 2013-07-30 22:38:38.383271418 +0200
@@ -234,7 +234,7 @@
apache._profiling_req = req
profilefile = defaults.var_dir + "/web/multisite.profile"
retcode = cProfile.run("import index; from mod_python import apache; index.handler(apache._profiling_req, False)", profilefile)
- file(profilefile + ".py", "w").write("#!/usr/bin/python\nimport pstats\nstats = pstats.Stats(%r)\nstats.sort_stats('time').print_stats()\n" % profilefile)
+ file(profilefile + ".py", "w").write("#!/usr/bin/python2\nimport pstats\nstats = pstats.Stats(%r)\nstats.sort_stats('time').print_stats()\n" % profilefile)
os.chmod(profilefile + ".py", 0755)
release_all_locks()
return apache.OK
|