且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

试图访问“当前目录"在打包的鞋子应用程序中

更新时间: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 :-)

穿上鞋子!

托比