587e5764be32b0ea896749e416658b5f7e73590c
mmaddren
  Thu May 10 16:31:35 2012 -0700
added more release object support to tracks, and fixed cvValidate for new libs
diff --git python/programs/cvValidate/cvValidate python/programs/cvValidate/cvValidate
index d47713b..1d8397e 100755
--- python/programs/cvValidate/cvValidate
+++ python/programs/cvValidate/cvValidate
@@ -1,34 +1,34 @@
 #!/usr/bin/env python2.7
 import sys
 import argparse
-from ucscgenomics import cv
+from ucscGb.encode import cv
 
 class validate(object):
     '''validation script that calls cv.validate and then puts all its errors into a list'''
 
     def __init__(self):
     
         parser = argparse.ArgumentParser(description = 'Validates the controlled vocabulary file')
         parser.add_argument('-c', '--cvPath', help='Overrides the default cv path ~/kent/src/hg/makeDb/trackDb/cv/alpha/cv.ra')
         parser.add_argument('-p', '--protocolPath', help='Overrides the default protocol path ~/htdocsExtras/ENCODE/')
         parser.add_argument('-l', '--loose', action='store_true', default=False, help='Suppress all warnings, only display breaking errors')
         
         args = parser.parse_args(sys.argv[1:])
         
         self.loose = args.loose
         self.errors = list()
         self.cv = cv.CvFile(args.cvPath, self.addtoerrs, args.protocolPath)  
         self.cv.validate()
         
         
         for err in self.errors:
             print err
             
     def addtoerrs(self, exception):
         if not self.loose or exception.strict:
             self.errors.append(exception)
 
 if __name__ == '__main__':
     val = validate()