OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
PluginLoader.cpp File Reference
#include "PluginLoader.hpp"
#include "PluginManager.hpp"
#include "PluginConfig.hpp"
#include "PluginFsUtils.hpp"
#include "PythonInterpreter.hpp"
#include "PythonPluginBridge.hpp"
#include "pluginTypes/resourceTexture/ResourceTexturePluginCapability.hpp"
#include "libslic3r/Utils.hpp"
#include "slic3r/GUI/I18N.hpp"
#include "slic3r/GUI/format.hpp"
#include <boost/algorithm/string.hpp>
#include <boost/algorithm/string/case_conv.hpp>
#include <boost/algorithm/string/join.hpp>
#include <boost/filesystem.hpp>
#include <boost/filesystem/path.hpp>
#include <boost/filesystem/operations.hpp>
#include <boost/filesystem/directory.hpp>
#include <boost/filesystem/file_status.hpp>
#include <boost/log/trivial.hpp>
#include <slic3r/Utils/BoostProcessCompat.hpp>
#include "slic3r/plugin/PluginDescriptor.hpp"
#include <optional>
#include <vector>
#include <memory>
#include "slic3r/plugin/PythonPluginInterface.hpp"
#include <cstddef>
#include <functional>
#include <system_error>
#include <algorithm>
#include <chrono>
#include <exception>
#include <mutex>
#include <stdexcept>
#include <string>
#include <thread>
#include <unordered_map>
#include <unordered_set>
#include <utility>
Include dependency graph for PluginLoader.cpp:

Go to the source code of this file.

Namespaces

namespace  Slic3r
 |/ Copyright (c) Prusa Research 2020 - 2023 Enrico Turri @enricoturri1966 |/ |/ PrusaSlicer is released under the terms of the AGPLv3 or higher |/
namespace  Slic3r::plugin_loader
namespace  Slic3r::plugin_loader::anonymous_namespace{PluginLoader.cpp}

Functions

boost::filesystem::path Slic3r::plugin_loader::anonymous_namespace{PluginLoader.cpp}::canonical_or_absolute (const boost::filesystem::path &path)
std::string Slic3r::plugin_loader::anonymous_namespace{PluginLoader.cpp}::plugin_package_extension (const boost::filesystem::path &path)
boost::filesystem::path Slic3r::plugin_loader::anonymous_namespace{PluginLoader.cpp}::local_plugin_root ()
boost::filesystem::path Slic3r::plugin_loader::anonymous_namespace{PluginLoader.cpp}::local_plugin_install_dir (const boost::filesystem::path &source_path)
void Slic3r::plugin_loader::anonymous_namespace{PluginLoader.cpp}::assign_local_plugin_key (PluginDescriptor &plugin_descriptor, const boost::filesystem::path &entry_file)
bool Slic3r::plugin_loader::anonymous_namespace{PluginLoader.cpp}::read_local_plugin_package_metadata (const boost::filesystem::path &source_path, PluginDescriptor &plugin_descriptor, std::string &error)
void Slic3r::plugin_loader::anonymous_namespace{PluginLoader.cpp}::teardown_capabilities (std::vector< std::shared_ptr< PluginCapabilityInterface > > &capabilities, std::size_t lifecycle_count)
bool Slic3r::plugin_loader::anonymous_namespace{PluginLoader.cpp}::add_wheel_dependencies_to_sys_path (const PluginDescriptor &descriptor, std::vector< std::string > &plugin_paths, std::string &error)
PyObject * Slic3r::plugin_loader::anonymous_namespace{PluginLoader.cpp}::import_plugin_module (const PluginDescriptor &descriptor, std::vector< std::string > &plugin_paths, std::vector< std::string > &plugin_modules, std::string &error)
std::string Slic3r::plugin_loader::anonymous_namespace{PluginLoader.cpp}::plugin_module_name (const PluginDescriptor &descriptor)
void Slic3r::plugin_loader::unload (Plugin &plugin)
bool Slic3r::plugin_loader::load (const PluginDescriptor &descriptor, bool skip_deps, const std::vector< std::string > &capabilities_to_enable, const std::function< std::string(const Plugin &)> &registry_precheck, Plugin &out, std::string &error, bool *registration_failed)
bool Slic3r::plugin_loader::install_packages (const std::vector< std::string > &pkgs, std::string &error)
bool Slic3r::plugin_loader::inspect_local_plugin_package (const boost::filesystem::path &filepath, PluginDescriptor &plugin_descriptor, bool &existing_installation, std::string &error)
bool Slic3r::plugin_loader::install_plugin (const boost::filesystem::path &filepath, const std::string &cloud_user_id, std::string &error)
bool Slic3r::plugin_loader::install_plugin (const boost::filesystem::path &filepath, const std::string &cloud_user_id, PluginDescriptor &plugin_descriptor, std::string &error)