rm self we are not in the class alright. thx jjkobra for noticing

This commit is contained in:
Nikos Kouremenos 2006-02-15 21:45:20 +00:00
parent cb6f163f02
commit f08ea56cc9
1 changed files with 5 additions and 5 deletions

View File

@ -86,14 +86,14 @@ def check_and_possibly_create_paths():
os.chmod(dot_gajim, 0700) # rwx------
if not os.path.exists(VCARD_PATH):
self.create_path(VCARD_PATH)
create_path(VCARD_PATH)
elif os.path.isfile(VCARD_PATH):
print _('%s is file but it should be a directory') % VCARD_PATH
print _('Gajim will now exit')
sys.exit()
if not os.path.exists(AVATAR_PATH):
self.create_path(AVATAR_PATH)
create_path(AVATAR_PATH)
elif os.path.isfile(AVATAR_PATH):
print _('%s is file but it should be a directory') % AVATAR_PATH
print _('Gajim will now exit')
@ -108,11 +108,11 @@ def check_and_possibly_create_paths():
else: # dot_gajim doesn't exist
if dot_gajim: # is '' on win9x so avoid that
self.create_path(dot_gajim)
create_path(dot_gajim)
if not os.path.isdir(VCARD_PATH):
self.create_path(VCARD_PATH)
create_path(VCARD_PATH)
if not os.path.exists(AVATAR_PATH):
self.create_path(AVATAR_PATH)
create_path(AVATAR_PATH)
if not os.path.isfile(LOG_DB_PATH):
create_log_db()
gajim.logger.init_vars()