Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bilby
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
lscsoft
bilby
Merge requests
!873
Resolve "Time to refactor utils?"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Time to refactor utils?"
509-time-to-refactor-utils
into
master
Overview
5
Commits
14
Pipelines
12
Changes
1
Merged
Moritz Huebner
requested to merge
509-time-to-refactor-utils
into
master
4 years ago
Overview
5
Commits
14
Pipelines
12
Changes
1
Expand
Closes
#509 (closed)
Edited
3 years ago
by
Moritz Huebner
0
0
Merge request reports
Viewing commit
6ea4dbcb
Prev
Next
Show latest version
1 file
+
3
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
6ea4dbcb
Added additional parent directory for searching .version file
· 6ea4dbcb
Moritz Huebner
authored
4 years ago
bilby/core/utils/logger.py
+
3
−
1
Options
@@ -63,7 +63,9 @@ def setup_logger(outdir=None, label=None, log_level='INFO', print_version=False)
def
get_version_information
():
version_file
=
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
dirname
(
__file__
)),
'
.version
'
)
os
.
path
.
dirname
(
os
.
path
.
dirname
(
os
.
path
.
dirname
(
__file__
))),
'
.version
'
)
try
:
with
open
(
version_file
,
'
r
'
)
as
f
:
return
f
.
readline
().
rstrip
()
Loading