mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-03-29 00:48:07 +08:00
“motion create” will now load templates in /Library/RubyMotionPre if necessary
This commit is contained in:
@@ -37,6 +37,8 @@ module Motion; module Project
|
||||
File.expand_path(File.join(__FILE__, '../template')),
|
||||
File.expand_path(File.join(ENV['HOME'], 'Library/RubyMotion/template'))
|
||||
]
|
||||
pre_templates = '/Library/RubyMotionPre/lib/motion/project/template'
|
||||
Paths << pre_templates if File.exist?(pre_templates)
|
||||
|
||||
# TODO Caching these and making it based on the Paths constant makes it
|
||||
# less simple to register plugin templates, because you cannot add
|
||||
|
||||
Reference in New Issue
Block a user