run-pychecker.py under scripts/dev to assist us catch runtime errors

This commit is contained in:
Nikos Kouremenos 2006-02-05 12:28:54 +00:00
parent 51cbea4232
commit 7a125073c5
1 changed files with 12 additions and 0 deletions

12
scripts/dev/run-pychecker.py Executable file
View File

@ -0,0 +1,12 @@
#! /usr/bin/env python
# (C) 2006 Nikos Kouremenos <kourem@gmail.com>
import os
import sys
if os.getcwd().endswith('dev'):
os.chdir('../../src/') # we were in scripts/dev
os.system('pychecker --limit 10000 --no-shadowbuiltin *.py &> /tmp/pychecker-gajim.log')
os.system('$EDITOR /tmp/pychecker-gajim.log')