Skip to content

Commit

Permalink
Merge pull request #624 from matz-e/geoff-crash
Browse files Browse the repository at this point in the history
Geoff crash
  • Loading branch information
klannon committed Feb 24, 2018
2 parents a331c39 + 687c9dd commit 55b2496
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
16 changes: 14 additions & 2 deletions lobster/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,27 @@
#
# This needs to be done before anything else is loaded and messes with
# either sys.path or sys.meta_path
ps = [p for p in sys.path if p.startswith(os.environ['VIRTUAL_ENV']) and 'site-packages' in p]
sys.path[:0] = ps
# Running into some weird errors
# ps = [p for p in sys.path if p.startswith(os.environ['VIRTUAL_ENV']) and 'site-packages' in p]
# sys.path[:0] = ps

from argparse import ArgumentParser
import logging

from lobster.core import command, config
from lobster import util

# Restore some old code
# FIXME pycurl shipping with CMSSW is too old to harmonize with modern DBS!
rm = []
for f in sys.path:
if '/cvmfs' in f:
for pkg in ('numpy', 'matplotlib'):
if pkg in f:
rm.append(f)
for f in rm:
sys.path.remove(f)

logger = logging.getLogger('lobster')


Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
'core/data/siteconf/PhEDEx/storage.xml',
'core/data/merge_cfg.py',
'core/data/merge_reports.py',
'core/data/report.json',
'core/data/report.json.in',
'commands/data/index.html',
'commands/data/gh.png',
Expand Down

0 comments on commit 55b2496

Please sign in to comment.