From 8e4131fc93349a98ff13694d2461421c0ed8f4bd Mon Sep 17 00:00:00 2001 From: Dimitur Kirov Date: Thu, 15 Jun 2006 09:49:44 +0000 Subject: [PATCH] create .gajim dir if it doesn't exist --- src/gajim.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gajim.py b/src/gajim.py index c9da401ec..c93166a75 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -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()