Skip to content
Snippets Groups Projects
Commit 36364b3c authored by Daniel Lyons's avatar Daniel Lyons
Browse files

Fixing the way that the user path is appended to the CAPO_PATH.

parent d8300d60
No related branches found
No related tags found
No related merge requests found
......@@ -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
# -*- 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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment