mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-05 22:40:25 +08:00
Support leading ".." notation in dependency pathnames
This commit is contained in:
@@ -205,7 +205,7 @@ module Motion; module Project
|
||||
|
||||
def files_dependencies(deps_hash)
|
||||
res_path = lambda do |x|
|
||||
path = /^\.?\//.match(x) ? x : File.join('.', x)
|
||||
path = /^\.{0,2}\//.match(x) ? x : File.join('.', x)
|
||||
unless @files.flatten.include?(path)
|
||||
App.fail "Can't resolve dependency `#{path}'"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user