Change paths for testing of Changelog

This commit is contained in:
Kovid Goyal 2015-01-15 15:41:19 +05:30
parent b5396dd801
commit 568d49bac7

View File

@ -78,13 +78,12 @@ class Check(Command):
raise SystemExit(1)
cache[f] = mtime
cPickle.dump(cache, open(self.CACHE, 'wb'), -1)
wn_path = os.path.expanduser('~/work/servers/src/calibre_servers/main')
wn_path = os.path.expanduser('~/work/srv/main/static')
if os.path.exists(wn_path):
sys.path.insert(0, self.d(self.d(wn_path))), sys.path.insert(0, wn_path)
sys.path.insert(0, wn_path)
self.info('\tChecking Changelog...')
os.environ['DJANGO_SETTINGS_MODULE'] = 'calibre_servers.status.settings'
import whats_new
whats_new.test()
whats_new.render_changelog(self.j(self.d(self.SRC), 'Changelog.yaml'))
sys.path.remove(wn_path)
def report_errors(self, errors):