1
0
mirror of https://github.com/gryf/wicd.git synced 2026-01-30 12:35:46 +01:00

experimental:

- Merge in changes from pluggablebackends.
This commit is contained in:
imdano
2008-09-06 16:54:53 +00:00
parent 9639cc8a14
commit 59d282ee6e
17 changed files with 2217 additions and 1329 deletions

View File

@@ -23,6 +23,8 @@ import sys
import os
import time
import wicd.wpath as wpath
class SizeError(IOError):
pass
@@ -89,6 +91,8 @@ class ManagedLog(object):
"""
def __init__(self, name, maxsize=360000, maxsave=3):
if not os.path.exists(os.path.dirname(name)):
os.makedirs(os.path.dirname(name))
self._lf = LogFile(name, "a", maxsize)
self.maxsave = maxsave