From 219e9d443a6befa90ac8d3d464dcf53bcac93d24 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Mon, 3 Oct 2005 12:35:15 +0000 Subject: [PATCH] Added auto-creation of ~/.weechat/{perl|python}/config directories --- src/common/weechat.c | 8 ++++++++ weechat/src/common/weechat.c | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/src/common/weechat.c b/src/common/weechat.c index b6fb77b35..82a588a9f 100644 --- a/src/common/weechat.c +++ b/src/common/weechat.c @@ -600,6 +600,10 @@ wee_create_home_dirs () snprintf (dir_name, dir_length, "%s%s%s%s%s", weechat_home, DIR_SEPARATOR, "perl", DIR_SEPARATOR, "autoload"); wee_create_dir (dir_name); + /* create "~/.weechat/perl/config" */ + snprintf (dir_name, dir_length, "%s%s%s%s%s", weechat_home, + DIR_SEPARATOR, "perl", DIR_SEPARATOR, "config"); + wee_create_dir (dir_name); } #endif @@ -613,6 +617,10 @@ wee_create_home_dirs () snprintf (dir_name, dir_length, "%s%s%s%s%s", weechat_home, DIR_SEPARATOR, "python", DIR_SEPARATOR, "autoload"); wee_create_dir (dir_name); + /* create "~/.weechat/python/config" */ + snprintf (dir_name, dir_length, "%s%s%s%s%s", weechat_home, + DIR_SEPARATOR, "python", DIR_SEPARATOR, "config"); + wee_create_dir (dir_name); } #endif diff --git a/weechat/src/common/weechat.c b/weechat/src/common/weechat.c index b6fb77b35..82a588a9f 100644 --- a/weechat/src/common/weechat.c +++ b/weechat/src/common/weechat.c @@ -600,6 +600,10 @@ wee_create_home_dirs () snprintf (dir_name, dir_length, "%s%s%s%s%s", weechat_home, DIR_SEPARATOR, "perl", DIR_SEPARATOR, "autoload"); wee_create_dir (dir_name); + /* create "~/.weechat/perl/config" */ + snprintf (dir_name, dir_length, "%s%s%s%s%s", weechat_home, + DIR_SEPARATOR, "perl", DIR_SEPARATOR, "config"); + wee_create_dir (dir_name); } #endif @@ -613,6 +617,10 @@ wee_create_home_dirs () snprintf (dir_name, dir_length, "%s%s%s%s%s", weechat_home, DIR_SEPARATOR, "python", DIR_SEPARATOR, "autoload"); wee_create_dir (dir_name); + /* create "~/.weechat/python/config" */ + snprintf (dir_name, dir_length, "%s%s%s%s%s", weechat_home, + DIR_SEPARATOR, "python", DIR_SEPARATOR, "config"); + wee_create_dir (dir_name); } #endif