更新时间:2023-08-17 14:37:52
您是否尝试过类似以下的操作:
Have you tried something like the following:
DIR = File.expand_path __FILE__
__FILE__ 是对当前文件的引用,File.expand_path 为您提供完整的系统路径.适用于我的鞋子应用 :-)
__FILE__ is a reference to the current file and File.expand_path gives you the full system path. Works in my shoes apps :-)
穿上鞋子!
托比