diff options
author | Frederic Lepied <flepied@mandriva.com> | 2002-02-05 04:14:06 +0000 |
---|---|---|
committer | Frederic Lepied <flepied@mandriva.com> | 2002-02-05 04:14:06 +0000 |
commit | 0901370a77d653c88df72cd07f6a87f96c3bb0ba (patch) | |
tree | 8a6813358a613448fb8be50eeafe62f1fb009e73 /share/ConfigFile.py | |
parent | 2c9725ca6503ab8440be063a4dce46eb876c1c87 (diff) | |
download | msec-0901370a77d653c88df72cd07f6a87f96c3bb0ba.tar msec-0901370a77d653c88df72cd07f6a87f96c3bb0ba.tar.gz msec-0901370a77d653c88df72cd07f6a87f96c3bb0ba.tar.bz2 msec-0901370a77d653c88df72cd07f6a87f96c3bb0ba.tar.xz msec-0901370a77d653c88df72cd07f6a87f96c3bb0ba.zip |
(exists): add an extra arg to really test if the file exists (without testing
if the file + suffix exists).
Diffstat (limited to 'share/ConfigFile.py')
-rw-r--r-- | share/ConfigFile.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 |