Skip to content
Snippets Groups Projects
Commit 344bc7f4 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

create AppData/Gajim folder if it doesn't exists

parent 5211ea08
No related branches found
Tags gajim-0.14.1
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment