create .gajim dir if it doesn't exist
This commit is contained in:
parent
fff37fe869
commit
8e4131fc93
1 changed files with 5 additions and 1 deletions
|
@ -157,7 +157,11 @@ if os.path.exists(pid_filename):
|
||||||
os.remove(pid_filename)
|
os.remove(pid_filename)
|
||||||
dialog.destroy()
|
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 = open(pid_filename, 'a')
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue