Code

Changes between Version 13 and Version 14 of ProfilingDjango


Ignore:
Timestamp:
10/30/12 04:42:49 (18 months ago)
Author:
anonymous
Comment:

do not hardcode path

Legend:

Unmodified
Added
Removed
Modified
  • ProfilingDjango

    v13 v14  
    1212import time 
    1313import settings 
     14import tempdir 
    1415 
    1516try: 
    1617    PROFILE_LOG_BASE = settings.PROFILE_LOG_BASE 
    1718except: 
    18     PROFILE_LOG_BASE = "/tmp" 
     19    PROFILE_LOG_BASE = tempfile.gettempdir() 
    1920 
    2021