git.cweiske.de
/
enigma2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5274c69
)
CONFIG, not SYSETC
author
Felix Domke
<tmbinc@elitedvb.net>
Fri, 8 Feb 2008 01:18:38 +0000
(
01:18
+0000)
committer
Felix Domke
<tmbinc@elitedvb.net>
Fri, 8 Feb 2008 01:18:38 +0000
(
01:18
+0000)
lib/python/Tools/Profile.py
patch
|
blob
|
history
diff --git
a/lib/python/Tools/Profile.py
b/lib/python/Tools/Profile.py
index 7e61da0f2abc66c776c6e34ca205ca378a452691..5fee5316faad1dad5174cd6ed82c8565418e242a 100644
(file)
--- 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
# 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
PERCENTAGE_START = 50
PERCENTAGE_END = 100
@@
-11,7
+11,7
@@
profile_data = {}
total_time = 1
try:
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:
t = None
for line in profile_old:
@@
-22,7
+22,7
@@
try:
except:
print "no profile data available"
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
def profile(id):
now = time.time() - profile_start