Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Load all script files in /data/scripts
- scripts_path = File.expand_path ('.') + '/Data/Scripts'
- $: << scripts_path if $:.empty?
- scripts = Dir[scripts_path + '/*.rb']
- scripts.each do |file|
- begin
- load file
- rescue TypeError
- scripts.push(file)
- end
- end
Add Comment
Please, Sign In to add comment