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

create ~/.config and ~/.cache folder if they don't exist

parent 5e012ff4
No related branches found
No related tags found
No related merge requests found
......@@ -334,5 +334,10 @@ def check_and_possibly_create_paths():
sys.exit()
def create_path(directory):
head, tail = os.path.split(directory)
if not os.path.exists(head):
create_path(head)
if os.path.exists(directory):
return
print _('creating %s directory') % directory
os.mkdir(directory, 0700)
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