diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2008-02-08 01:18:38 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2008-02-08 01:18:38 +0000 |
| commit | fcf3e4bc055cd91a47a5aedc91abad9161e180fc (patch) | |
| tree | 43b656751272e548c04814cb49cb261be37e9a36 /lib/python | |
| parent | 5274c69abf4cb2b99ab9d92ac0081c0ec49bd2e4 (diff) | |
| download | enigma2-fcf3e4bc055cd91a47a5aedc91abad9161e180fc.tar.gz enigma2-fcf3e4bc055cd91a47a5aedc91abad9161e180fc.zip | |
CONFIG, not SYSETC
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/Tools/Profile.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/python/Tools/Profile.py b/lib/python/Tools/Profile.py index 7e61da0f..5fee5316 100644 --- a/lib/python/Tools/Profile.py +++ b/lib/python/Tools/Profile.py @@ -1,6 +1,6 @@ # the implementation here is a bit crappy. import time -from Directories import resolveFilename, SCOPE_SYSETC +from Directories import resolveFilename, SCOPE_CONFIG PERCENTAGE_START = 50 PERCENTAGE_END = 100 @@ -11,7 +11,7 @@ profile_data = {} total_time = 1 try: - profile_old = open(resolveFilename(SCOPE_SYSETC, "profile"), "r").readlines() + profile_old = open(resolveFilename(SCOPE_CONFIG, "profile"), "r").readlines() t = None for line in profile_old: @@ -22,7 +22,7 @@ try: except: print "no profile data available" -profile_file = open(resolveFilename(SCOPE_SYSETC, "profile"), "w") +profile_file = open(resolveFilename(SCOPE_CONFIG, "profile"), "w") def profile(id): now = time.time() - profile_start |
