File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 1
1
# reticulate (development version)
2
2
3
+ - Fixed error when importing a module named ` config ` (#1628 )
4
+
3
5
# reticulate 1.38.0
4
6
5
7
- Python Exceptions converted to R conditions are now R lists instead
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ def module_path(name):
33
33
34
34
# Get appropriate path-entry separator for platform
35
35
pathsep = ";" if os .name == "nt" else ":"
36
+ this_script_dir = os .path .dirname (__file__ )
36
37
37
38
# Read default configuration values
38
39
# fmt: off
@@ -43,7 +44,8 @@ def module_path(name):
43
44
"Prefix" : getattr (sys , "prefix" , "" ),
44
45
"ExecPrefix" : getattr (sys , "exec_prefix" , "" ),
45
46
"BaseExecPrefix" : getattr (sys , "base_exec_prefix" , "" ),
46
- "PythonPath" : pathsep .join ((x or "." for x in sys .path )),
47
+ "PythonPath" : pathsep .join ((x or "." for x in sys .path
48
+ if x != this_script_dir )),
47
49
"LIBPL" : sysconfig .get_config_var ("LIBPL" ),
48
50
"LIBDIR" : sysconfig .get_config_var ("LIBDIR" ),
49
51
"SharedLibrary" : sysconfig .get_config_var ("Py_ENABLE_SHARED" ),
You can’t perform that action at this time.
0 commit comments