From 0901370a77d653c88df72cd07f6a87f96c3bb0ba Mon Sep 17 00:00:00 2001 From: Frederic Lepied Date: Tue, 5 Feb 2002 04:14:06 +0000 Subject: (exists): add an extra arg to really test if the file exists (without testing if the file + suffix exists). --- share/ConfigFile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'share/ConfigFile.py') diff --git a/share/ConfigFile.py b/share/ConfigFile.py index 656c48a..b041169 100644 --- a/share/ConfigFile.py +++ b/share/ConfigFile.py @@ -119,8 +119,8 @@ class ConfigFile: self.sym_link = link return self - def exists(self): - return os.path.exists(self.path) or (self.suffix and os.path.exists(self.path + self.suffix)) + def exists(self, really=0): + return os.path.exists(self.path) or (not really and self.suffix and os.path.exists(self.path + self.suffix)) def move(self, suffix): self.suffix = suffix -- cgit v1.2.1