Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ensembl-gh-mirror
ensembl
Commits
d1a19309
Commit
d1a19309
authored
Aug 29, 2007
by
Andreas Kusalananda Kähäri
Browse files
Merge in post-release change on HEAD.
parent
509ccfed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
4 deletions
+17
-4
modules/Bio/EnsEMBL/Registry.pm
modules/Bio/EnsEMBL/Registry.pm
+17
-4
No files found.
modules/Bio/EnsEMBL/Registry.pm
View file @
d1a19309
...
...
@@ -117,8 +117,6 @@ use Bio::EnsEMBL::Utils::Argument qw(rearrange);
use
Bio::EnsEMBL::Utils::
ConfigRegistry
;
use
DBI
;
use
Config::
IniFiles
;
use
vars
qw(%registry_register)
;
my
$API_VERSION
=
46
;
...
...
@@ -192,9 +190,24 @@ sub load_all {
$config_file
);
}
my
$cfg
=
Config::
IniFiles
->
new
(
-
file
=>
$config_file
);
if
(
defined
$cfg
)
{
my
$cfg
;
eval
{
require
Config::
IniFiles
};
if
(
$@
)
{
# The user does not have the 'Config::IniFiles' module.
if
(
$verbose
)
{
print
(
STDERR
"
No Config::IniFiles module found,
"
.
"
assuming this is not an ini-file
\n
"
);
}
# If the configuration file *is* an ini-file, we can expect a
# load of compilation errors from the next eval...
}
else
{
# The user has the 'Config::IniFiles' module installed. See
# if this is an ini-file or not...
$cfg
=
Config::
IniFiles
->
new
(
-
file
=>
$config_file
);
}
if
(
defined
$cfg
)
{
# This is a map from group names to Ensembl DB adaptors.
my
%group2adaptor
=
(
'
blast
'
=>
'
Bio::EnsEMBL::External::BlastAdaptor
',
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment