ffi / ffi-compiler

Apache License 2.0
32 stars 10 forks source link

On windows, the start path for library loading is set to '.' #4

Closed frahugo closed 11 years ago

frahugo commented 11 years ago

The path in caller[0] includes the drive letter followed by :, which is the separator we use to split the path. i.e. c:/foo/bar/file.rb.

I added a small method with logic specific to Windows

ghost commented 11 years ago

Thanks! I'll push a new release with this soon-ish.

frahugo commented 11 years ago

thanks!