##// END OF EJS Templates
rcextensions: improved messaging on rcextensions load fail
marcink -
r3814:fda74c0c stable
parent child Browse files
Show More
@@ -634,10 +634,12 b' def load_rcextensions(root_path):'
634
634
635 path = os.path.join(root_path)
635 path = os.path.join(root_path)
636 sys.path.append(path)
636 sys.path.append(path)
637
637 try:
638 try:
638 rcextensions = __import__('rcextensions')
639 rcextensions = __import__('rcextensions')
639 except ImportError:
640 except ImportError:
640 log.warn('Unable to load rcextensions from %s', path)
641 if os.path.isdir(os.path.join(path, 'rcextensions')):
642 log.warn('Unable to load rcextensions from %s', path)
641 rcextensions = None
643 rcextensions = None
642
644
643 if rcextensions:
645 if rcextensions:
General Comments 0
You need to be logged in to leave comments. Login now