run-pychecker.py under scripts/dev to assist us catch runtime errors
This commit is contained in:
parent
51cbea4232
commit
7a125073c5
|
@ -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')
|
||||||
|
|
Loading…
Reference in New Issue