Skip to content

Commit

Permalink
include cmsbot in sys.path
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar committed Jan 22, 2018
1 parent e5a5f9a commit ce61a51
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion das-utils/ib-datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@
from os.path import dirname, basename, join, exists, abspath
from sys import exit, argv
from time import time, sleep
import json
import json, sys
from commands import getstatusoutput
cmsbot_dir=None
if __file__: cmsbot_dir=dirname(dirname(abspath(__file__)))
else: cmsbot_dir=dirname(dirname(abspath(argv[0])))
sys.path.insert(0,cmsbot_dir)

from es_utils import get_payload

def format(s, **kwds): return s % kwds
Expand Down

0 comments on commit ce61a51

Please sign in to comment.