run-pychecker.py under scripts/dev to assist us catch runtime errors
This commit is contained in:
		
							parent
							
								
									51cbea4232
								
							
						
					
					
						commit
						7a125073c5
					
				
					 1 changed files with 12 additions and 0 deletions
				
			
		
							
								
								
									
										12
									
								
								scripts/dev/run-pychecker.py
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										12
									
								
								scripts/dev/run-pychecker.py
									
										
									
									
									
										Executable 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')
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	Add table
		
		Reference in a new issue