Commit 344bc7f4 authored by Yann Leboulanger's avatar Yann Leboulanger

create AppData/Gajim folder if it doesn't exists

parent 5211ea08
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment