Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ORNL Quantum Computing Institute
xacc
Commits
8f434b3a
Commit
8f434b3a
authored
Jan 31, 2018
by
Mccaskey, Alex
Browse files
updating dir search in service registry
Signed-off-by:
Alex McCaskey
<
mccaskeyaj@ornl.gov
>
parent
120f374a
Changes
2
Hide whitespace changes
Inline
Side-by-side
xacc/XACC.cpp
View file @
8f434b3a
...
...
@@ -58,9 +58,8 @@ void Initialize(int arc, char** arv) {
XACCLogger
::
instance
()
->
info
(
"Initializing the ServiceRegistry"
);
serviceRegistry
->
initialize
();
}
catch
(
std
::
exception
&
e
)
{
XACCLogger
::
instance
()
->
error
(
std
::
string
(
e
.
what
())
+
" - Could not initialize XACC Framework"
);
XACCLogger
::
instance
()
->
error
(
"Failure initializing XACC Plugin Registry - "
+
std
::
string
(
e
.
what
()));
}
// Parse any user-supplied command line options
...
...
xacc/utils/ServiceRegistry.cpp
View file @
8f434b3a
...
...
@@ -12,7 +12,7 @@ void ServiceRegistry::initialize() {
XACCLogger
::
instance
()
->
info
(
"Running Framework.Init."
);
framework
.
Init
();
XACCLogger
::
instance
()
->
info
(
"
Getting the Framework Bundle Context."
);
XACCLogger
::
instance
()
->
info
(
"Getting the Framework Bundle Context."
);
context
=
framework
.
GetBundleContext
();
if
(
!
context
)
{
XACCLogger
::
instance
()
->
error
(
...
...
@@ -23,6 +23,11 @@ void ServiceRegistry::initialize() {
XACCLogger
::
instance
()
->
info
(
"XACC Lib Directory: "
+
xaccLibDir
);
for
(
auto
&
entry
:
boost
::
filesystem
::
directory_iterator
(
xaccLibDir
))
{
XACCLogger
::
instance
()
->
info
(
"TEST: "
+
entry
.
path
().
filename
().
string
());
if
(
entry
.
path
().
filename
().
string
()
==
"lib"
)
{
for
(
auto
&
e
:
boost
::
filesystem
::
directory_iterator
(
entry
.
path
()))
{
XACCLogger
::
instance
()
->
info
(
"SUB LIB: "
+
e
.
path
().
string
());
}
}
// We want the gate and aqc bundles that come with XACC
if
(
boost
::
contains
(
entry
.
path
().
filename
().
string
(),
"libxacc-quantum"
))
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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