import sys, os from sndcs.Config import config webware_path = os.path.expanduser(config.get("webware", "webware_path")) assert os.path.isdir(webware_path), "%s is not an existing directory" % (webware_path) sys.path.append(webware_path)