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
49786fb6
Commit
49786fb6
authored
Jan 31, 2018
by
Mccaskey, Alex
Browse files
updating print statement
Signed-off-by:
Alex McCaskey
<
mccaskeyaj@ornl.gov
>
parent
11a57df6
Changes
1
Hide whitespace changes
Inline
Side-by-side
xacc/utils/ServiceRegistry.cpp
View file @
49786fb6
...
...
@@ -19,15 +19,15 @@ void ServiceRegistry::initialize() {
"Invalid XACC Framework plugin context."
);
}
const
std
::
string
xaccLibDir
=
std
::
string
(
XACC_INSTALL_DIR
)
+
std
::
string
(
"/lib
/
"
);
XACCLogger
::
instance
()
->
info
(
"
Plugin
Lib Directory: "
+
xaccLibDir
);
const
std
::
string
xaccLibDir
=
std
::
string
(
XACC_INSTALL_DIR
)
+
std
::
string
(
"/lib"
);
XACCLogger
::
instance
()
->
info
(
"
XACC
Lib Directory: "
+
xaccLibDir
);
for
(
auto
&
entry
:
boost
::
make_iterator_range
(
boost
::
filesystem
::
directory_iterator
(
xaccLibDir
),
{
}))
{
XACCLogger
::
instance
()
->
info
(
"TEST: "
+
entry
.
path
().
filename
().
string
());
// We want the gate and aqc bundles that come with XACC
if
(
boost
::
contains
(
entry
.
path
().
filename
().
string
(),
"libxacc-quantum"
))
{
XACCLogger
::
instance
()
->
info
(
"Installing plugin "
+
entry
.
path
().
string
());
XACCLogger
::
instance
()
->
info
(
"Installing
base
plugin "
+
entry
.
path
().
string
());
context
.
InstallBundles
(
entry
.
path
().
string
());
}
}
...
...
@@ -36,6 +36,8 @@ void ServiceRegistry::initialize() {
boost
::
filesystem
::
directory_iterator
end_itr
;
boost
::
filesystem
::
path
xaccPluginPath
(
std
::
string
(
XACC_INSTALL_DIR
)
+
std
::
string
(
"/lib/plugins"
));
XACCLogger
::
instance
()
->
info
(
"XACC Plugin Lib Directory: "
+
xaccPluginPath
);
if
(
boost
::
filesystem
::
exists
(
xaccPluginPath
))
{
for
(
boost
::
filesystem
::
directory_iterator
itr
(
xaccPluginPath
);
...
...
@@ -45,7 +47,7 @@ void ServiceRegistry::initialize() {
for
(
auto
&
entry
:
boost
::
make_iterator_range
(
boost
::
filesystem
::
directory_iterator
(
itr
->
path
()),
{
}))
{
XACCLogger
::
instance
()
->
info
(
"Installing plugin "
+
entry
.
path
().
string
());
XACCLogger
::
instance
()
->
info
(
"Installing
3rd party
plugin "
+
entry
.
path
().
string
());
context
.
InstallBundles
(
entry
.
path
().
string
());
}
}
...
...
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