1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-26 04:46:37 +02:00

Added auto-creation of ~/.weechat/{perl|python}/config directories

This commit is contained in:
Sebastien Helleu
2005-10-03 12:35:15 +00:00
parent 77d50aef98
commit 219e9d443a
2 changed files with 16 additions and 0 deletions
+8
View File
@@ -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
+8
View File
@@ -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