|
@@ -100,7 +100,13 @@ main(int argc, char* argv[]) {
|
|
|
|
|
|
// initialize command channel
|
|
|
try {
|
|
|
- CommandSession cs = CommandSession(AUTH_SPECFILE_LOCATION,
|
|
|
+ std::string specfile;
|
|
|
+ if (getenv("B10_FROM_SOURCE")) {
|
|
|
+ specfile = std::string(getenv("B10_FROM_SOURCE")) + "/src/bin/auth/auth.spec";
|
|
|
+ } else {
|
|
|
+ specfile = std::string(AUTH_SPECFILE_LOCATION);
|
|
|
+ }
|
|
|
+ CommandSession cs = CommandSession(specfile,
|
|
|
my_config_handler,
|
|
|
my_command_handler);
|
|
|
|