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:
Diffstat (limited to 'src/gajim.py')
-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