Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
pycapo
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
Package registry
Model registry
Operate
Environments
Terraform modules
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ssa
Capo Implementations
pycapo
Commits
36364b3c
Commit
36364b3c
authored
7 years ago
by
Daniel Lyons
Browse files
Options
Downloads
Patches
Plain Diff
Fixing the way that the user path is appended to the CAPO_PATH.
parent
d8300d60
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pycapo/_constants.py
+1
-2
1 addition, 2 deletions
pycapo/_constants.py
pycapo/models.py
+6
-1
6 additions, 1 deletion
pycapo/models.py
with
7 additions
and
3 deletions
pycapo/_constants.py
+
1
−
2
View file @
36364b3c
...
...
@@ -2,5 +2,4 @@
import
os
DEFAULT_CAPO_PATH
=
'
/home/casa/capo:/home/ssa/capo:
'
+
\
os
.
path
.
join
(
os
.
path
.
expanduser
(
'
~
'
),
'
.capo
'
)
\ No newline at end of file
DEFAULT_CAPO_PATH
=
'
/home/casa/capo:/home/ssa/capo
'
\ No newline at end of file
This diff is collapsed.
Click to expand it.
pycapo/models.py
+
6
−
1
View file @
36364b3c
# -*- coding: utf-8 -*-
import
os
import
os.path
import
re
import
sys
...
...
@@ -55,9 +56,13 @@ class CapoConfig:
else
:
self
.
_path
=
DEFAULT_CAPO_PATH
# unconditionally append the user's capo path
self
.
_path
+=
'
:
'
+
os
.
path
.
join
(
os
.
path
.
expanduser
(
'
~
'
),
'
.capo
'
)
self
.
_options
,
self
.
_locations
=
dict
(),
dict
()
self
.
_cfgfiles
=
[
_CapoConfigurationFile
(
self
.
profile
,
d
)
for
d
in
self
.
_path
.
split
(
'
:
'
)]
for
d
in
self
.
_path
.
split
(
'
:
'
)
if
d
!=
''
]
self
.
_update
()
def
_update
(
self
):
...
...
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