Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hcana
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
jlab
hallc
analyzer_software
hcana
Commits
3133c9d1
Commit
3133c9d1
authored
6 years ago
by
Whitney Armstrong
Committed by
Stephen A. Wood
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
If DB_DIR is not set, set to default value of "DBASE"
parent
01dfb9b1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main.C
+12
-0
12 additions, 0 deletions
src/main.C
with
12 additions
and
0 deletions
src/main.C
+
12
−
0
View file @
3133c9d1
...
@@ -7,12 +7,24 @@
...
@@ -7,12 +7,24 @@
#include
"THcInterface.h"
#include
"THcInterface.h"
#include
<iostream>
#include
<iostream>
#include
<cstring>
#include
<cstring>
#include
<string>
#include
<cstdlib>
using
namespace
std
;
using
namespace
std
;
int
main
(
int
argc
,
char
**
argv
)
int
main
(
int
argc
,
char
**
argv
)
{
{
// Create a ROOT-style interactive interface
// Create a ROOT-style interactive interface
//
if
(
!
std
::
getenv
(
"DB_DIR"
))
{
std
::
string
db_dir_env
=
"DBASE"
;
if
(
setenv
(
"DB_DIR"
,
db_dir_env
.
c_str
(),
1
))
{
std
::
cout
<<
"Failed to set env var DB_DIR
\n
"
;
}
else
{
std
::
cout
<<
"DB_DIR set to DBASE
\n
"
;
}
}
// Handle convenience command line options
// Handle convenience command line options
bool
print_version
=
false
,
no_logo
=
false
;
bool
print_version
=
false
,
no_logo
=
false
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment