lib/pycall/utils.rb in pycall-0.1.0.alpha.20170308 vs lib/pycall/utils.rb in pycall-0.1.0.alpha.20170309
- old
+ new
@@ -1,9 +1,9 @@
module PyCall
module Utils
def append_sys_path(path_str)
pyobj = LibPython.PyUnicode_DecodeUTF8(path_str, path_str.bytesize, nil)
- sys.path.append.(pyobj)
+ sys.path << pyobj
end
def callable?(pyobj)
unless pyobj.kind_of? LibPython::PyObjectStruct
raise TypeError, "the argument must be a Python object" unless pyobj.respond_to? :__pyobj__