Skip to content

Commit 0c10f6d

Browse files
committed
Stop using PYTHONPATH
1 parent c3c5038 commit 0c10f6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/pycall/init.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ class << PyCall::LibPython
3030
remove_method :const_missing
3131
end
3232

33-
ENV['PYTHONPATH'] = [ File.expand_path('../python', __FILE__), ENV['PYTHONPATH'] ].compact.join(File::PATH_SEPARATOR)
34-
3533
LibPython.instance_variable_set(:@handle, LibPython::Finder.find_libpython(python))
3634
class << LibPython
3735
undef_method :handle
@@ -45,6 +43,8 @@ class << LibPython
4543
require 'pycall.so'
4644
end
4745

46+
PyCall.sys.path.append(File.expand_path('../python', __FILE__))
47+
4848
require 'pycall/dict'
4949
require 'pycall/list'
5050
require 'pycall/slice'

0 commit comments

Comments
 (0)