parse_map now checks if directory exists.
This commit is contained in:
parent
054f2aa524
commit
c576b59d16
1 changed files with 4 additions and 1 deletions
|
@ -35,7 +35,10 @@ module Qasim
|
|||
#rdebug "Config: #{@config_dir}/config"
|
||||
|
||||
@maps = []
|
||||
Find.find( @config_dir, APP_SYSCONFIG_DIR ) do |path|
|
||||
map_dirs = [@config_dir, APP_SYSCONFIG_DIR].select{ |d|
|
||||
File.exists? d and File.directory? d
|
||||
}
|
||||
Find.find( *map_dirs ) do |path|
|
||||
if File.file? path
|
||||
if File.basename( path ) =~ /.map$/
|
||||
begin
|
||||
|
|
Loading…
Reference in a new issue