rrd.py: fix isfile check

This commit is contained in:
Nils Schneider 2013-11-25 13:17:53 +01:00
parent 7e498c4197
commit 86485bc7df

2
rrd.py
View file

@ -144,7 +144,7 @@ class rrd:
nodeDbFiles = os.listdir(self.dbPath) nodeDbFiles = os.listdir(self.dbPath)
for fileName in nodeDbFiles: for fileName in nodeDbFiles:
if not os.path.isfile(fileName): if not os.path.isfile(os.path.join(self.dbPath, fileName)):
continue continue
nodeName = os.path.basename(fileName).split('.') nodeName = os.path.basename(fileName).split('.')