Skip to content

Commit ad95999

Browse files
authored
fix: fix compilation
1 parent 75acf06 commit ad95999

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lse/PluginManager.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,19 +143,19 @@ ll::Expected<> PluginManager::load(ll::mod::Manifest manifest) {
143143
std::error_code ec;
144144

145145
// add plugin-own site-packages to sys.path
146-
string pluginSitePackageFormatted = ll::string_utils::u8str2str(
146+
std::string pluginSitePackageFormatted = ll::string_utils::u8str2str(
147147
std::filesystem::canonical(realPackageInstallDir.make_preferred(), ec).u8string()
148148
);
149149
if (!ec) {
150150
scriptEngine.eval("_llse_py_sys_module.path.insert(0, r'" + pluginSitePackageFormatted + "')");
151151
}
152152
// add plugin source dir to sys.path
153-
string sourceDirFormatted =
153+
std::string sourceDirFormatted =
154154
ll::string_utils::u8str2str(std::filesystem::canonical(dirPath.make_preferred()).u8string());
155155
scriptEngine.eval("_llse_py_sys_module.path.insert(0, r'" + sourceDirFormatted + "')");
156156

157157
// set __file__ and __name__
158-
string entryPathFormatted = ll::string_utils::u8str2str(
158+
std::string entryPathFormatted = ll::string_utils::u8str2str(
159159
std::filesystem::canonical(std::filesystem::path(entryPath).make_preferred()).u8string()
160160
);
161161
scriptEngine.set("__file__", entryPathFormatted);

0 commit comments

Comments
 (0)