fix: Prepend plugin dir to py path, rather than append
So our modules win import-name conflicts with system/third party ones. This became a problem when I copied a couple files from the pybit sdk into our plugins dir in order to apply tweaks.
This commit is contained in:
1 parent
1e0ec5bb46
commit
d219804caf
1 file changed
+2
-2
@@ -99,8 +99,8 @@ struct __attribute__((visibility("hidden"))) PluginManager_Impl {
|
||||
session_data = &sd;
|
||||
mx.unlock();
|
||||
try {
|
||||
sd.import("sys").attr("path").attr("append")(
|
||||
"python_interop_plugins");
|
||||
sd.import("sys").attr("path").attr("insert")(
|
||||
0, "python_interop_plugins");
|
||||
sd.import("spark_core").attr("configure_default_logger")();
|
||||
sd.import("bybit_md_provider");
|
||||
sd.import("bybit_execution_gateway");
|
||||
|
||||
Reference in new issue
Block a user