Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2010-10-26 20:25:58 +0400
committerYann Leboulanger <asterix@lagaule.org>2010-10-26 20:25:58 +0400
commit344bc7f400fc9775201178373af4cb15b15ac369 (patch)
tree5871c313a51a1133a949ff5d656e2db96bc47d1c
parent5211ea08f50bffee9426226ec06df6416e7cfdaf (diff)
create AppData/Gajim folder if it doesn't existsgajim-0.14.1
-rw-r--r--src/gajim.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gajim.py b/src/gajim.py
index 0f69b35c7..08968a173 100644
--- a/src/gajim.py
+++ b/src/gajim.py
@@ -57,7 +57,10 @@ if os.name == 'nt':
import warnings
if os.name == 'nt':
- log_file = os.path.join(os.environ['APPDATA'], 'Gajim', 'gajim.log')
+ log_path = os.path.join(os.environ['APPDATA'], 'Gajim')
+ if not os.path.exists(log_path):
+ os.mkdir(log_path, 0700)
+ log_file = os.path.join(log_path, 'gajim.log')
fout = open(log_file, 'a')
sys.stdout = fout
sys.stderr = fout