08/01/25 21:41:18
>>252
こーゆーので我慢する、もしくは(cygwin|windows)を捨てる
def cygpath(opt,path) ; return `cygpath #{opt} #{File.expand_path(path)}` ; end
def winpath(path)
path = File.expand_path(path)
if RUBY_PLATFORM =~ /cygwin/ # ? cygwin 環境と一致する奴
# return `cygpath -w #{path}`
return path.sub(%r!^/cygdrive/(.)/!, '\1:/').sub(%r!^/home/!, 'c:/cygwin/')
end
return path
end