create .gajim dir if it doesn't exist

This commit is contained in:
Dimitur Kirov 2006-06-15 09:49:44 +00:00
parent fff37fe869
commit 8e4131fc93
1 changed files with 5 additions and 1 deletions

View File

@ -157,7 +157,11 @@ if os.path.exists(pid_filename):
os.remove(pid_filename)
dialog.destroy()
# Create pif file
# Create .gajim dir
pid_dir = os.path.dirname(pid_filename)
if not os.path.exists(pid_dir):
check_paths.create_path(pid_dir)
# Create pid file
f = open(pid_filename, 'a')
f.close()