Skip to content
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.

Commit

Permalink
Remove plugins folder and revert back to files.h
Browse files Browse the repository at this point in the history
  • Loading branch information
zalox committed Apr 4, 2016
1 parent 516a383 commit e10188b
Show file tree
Hide file tree
Showing 4 changed files with 214 additions and 202 deletions.
132 changes: 0 additions & 132 deletions plugins/snippet.py

This file was deleted.

64 changes: 0 additions & 64 deletions plugins/tools.py

This file was deleted.

20 changes: 14 additions & 6 deletions src/config.cc
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,23 @@ void Config::load() {
void Config::find_or_create_config_files() {
auto config_dir = home/"config";
auto config_json = config_dir/"config.json";

boost::filesystem::create_directories(config_dir); // io exp captured by calling method
boost::filesystem::create_directories(home/"plugins");
auto plugin_dir = home/"plugins";

auto tools_path = plugin_dir/"tools.py";
auto snippet_path = plugin_dir/"snippet.py";

boost::filesystem::create_directories(config_dir);
boost::filesystem::create_directories(plugin_dir);

if (!boost::filesystem::exists(config_json))
filesystem::write(config_json, configjson); // vars configjson and pluginspy

filesystem::write(config_json, configjson);
if (!boost::filesystem::exists(tools_path))
filesystem::write(tools_path, tools_py);
if (!boost::filesystem::exists(snippet_path))
filesystem::write(snippet_path, snippet_py);

auto juci_style_path = home/"styles";
boost::filesystem::create_directories(juci_style_path); // io exp captured by calling method
boost::filesystem::create_directories(juci_style_path);

juci_style_path/="juci-light.xml";
if(!boost::filesystem::exists(juci_style_path))
Expand Down
Loading

0 comments on commit e10188b

Please sign in to comment.