Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Changeset 881

Show
Ignore:
Timestamp:
12/23/05 16:09:04
Author:
fumanchu
Message:

Fix for #419 (no profile.py on Debian).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cherrypy/lib/profiler.py

    r856 r881  
    4242pstats.func_strip_path = new_func_strip_path 
    4343 
    44 import profile 
     44try: 
     45    import profile 
     46except ImportError: 
     47    profile = None 
     48    import warnings 
     49    msg = ("Your installation of Python doesn't have a profile module. " 
     50           "If you're on Debian, you can apt-get python2.4-profiler from " 
     51           "non-free in a separate step. See http://www.cherrypy.org/wiki/" 
     52           "ProfilingOnDebian for details.") 
     53    warnings.warn(msg) 
     54 
    4555import os, os.path 
    4656import sys 

Hosted by WebFaction

Log in as guest/cpguest to create tickets