diff options
author | Raphaël Beamonte <raphael.beamonte@gmail.com> | 2012-12-23 21:36:34 -0500 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2013-01-04 14:14:30 +0100 |
commit | 4ec58d1edaa094a3f768a23a35afb447361f8f72 (patch) | |
tree | 15da26d6498137aaf1f4590cb1485014bcc8bc23 /rteval | |
parent | a609c1f6d6b615cfba3f5380ef176507361bfb7f (diff) | |
download | rteval-4ec58d1edaa094a3f768a23a35afb447361f8f72.tar.gz rteval-4ec58d1edaa094a3f768a23a35afb447361f8f72.tar.xz rteval-4ec58d1edaa094a3f768a23a35afb447361f8f72.zip |
Replace concatened paths with a call to os.path.join
Signed-off-by: Raphaël Beamonte <raphael.beamonte@gmail.com>
Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'rteval')
-rw-r--r-- | rteval/rtevalConfig.py | 2 | ||||
-rw-r--r-- | rteval/sysinfo/cputopology.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/rteval/rtevalConfig.py b/rteval/rtevalConfig.py index 50ba06d..6df3dc2 100644 --- a/rteval/rtevalConfig.py +++ b/rteval/rtevalConfig.py @@ -252,7 +252,7 @@ def unit_test(rootdir): l = Log() l.SetLogVerbosity(Log.INFO) cfg = rtevalConfig(logger=l) - cfg.Load(rootdir + '/rteval.conf') + cfg.Load(os.path.join(rootdir, 'rteval.conf')) print cfg return 0 except Exception, e: diff --git a/rteval/sysinfo/cputopology.py b/rteval/sysinfo/cputopology.py index 87bb85f..e8d03a4 100644 --- a/rteval/sysinfo/cputopology.py +++ b/rteval/sysinfo/cputopology.py @@ -30,7 +30,7 @@ class CPUtopology: "Retrieves an overview over the installed CPU cores and the system topology" def __init__(self, root="/"): - self.sysdir = root + "/sys/devices/system/cpu" + self.sysdir = os.path.join(root, 'sys', 'devices', 'system', 'cpu') self.__cputop_n = None self.__cpu_cores = 0 self.__online_cores = 0 |