mirror of
				https://github.com/Mikaela/Limnoria.git
				synced 2025-10-31 07:37:22 +01:00 
			
		
		
		
	setup.py: Build plugin list automatically
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
This commit is contained in:
		
							parent
							
								
									c81cd48fa6
								
							
						
					
					
						commit
						013167bba7
					
				
							
								
								
									
										60
									
								
								setup.py
									
									
									
									
									
								
							
							
						
						
									
										60
									
								
								setup.py
									
									
									
									
									
								
							| @ -29,63 +29,6 @@ | ||||
| # POSSIBILITY OF SUCH DAMAGE. | ||||
| ### | ||||
| 
 | ||||
| plugins = [ | ||||
|     'Admin', | ||||
|     'Alias', | ||||
|     'Anonymous', | ||||
|     'AutoMode', | ||||
|     'BadWords', | ||||
|     'Channel', | ||||
|     'ChannelLogger', | ||||
|     'ChannelStats', | ||||
|     'Config', | ||||
|     'Ctcp', | ||||
|     'Dict', | ||||
|     'Factoids', | ||||
|     'Filter', | ||||
|     'Format', | ||||
|     'Games', | ||||
|     'Google', | ||||
|     'Herald', | ||||
|     'Insult', | ||||
|     'Internet', | ||||
|     'Karma', | ||||
|     'Lart', | ||||
|     'Later', | ||||
|     'Limiter', | ||||
|     'Math', | ||||
|     'Misc', | ||||
|     'MoobotFactoids', | ||||
|     'Network', | ||||
|     'News', | ||||
|     'NickCapture', | ||||
|     'Nickometer', | ||||
|     'Note', | ||||
|     'Owner', | ||||
|     'Plugin', | ||||
|     'Praise', | ||||
|     'Protector', | ||||
|     'Quote', | ||||
|     'QuoteGrabs', | ||||
|     'Relay', | ||||
|     'Reply', | ||||
|     'RSS', | ||||
|     'Scheduler', | ||||
|     'Seen', | ||||
|     'Services', | ||||
|     'ShrinkUrl', | ||||
|     'Status', | ||||
|     'String', | ||||
|     'Time', | ||||
|     'Todo', | ||||
|     'Topic', | ||||
|     'Unix', | ||||
|     'URL', | ||||
|     'User', | ||||
|     'Utilities', | ||||
|     'Web', | ||||
|     ] | ||||
| 
 | ||||
| import sys | ||||
| 
 | ||||
| if sys.version_info < (2, 3, 0): | ||||
| @ -103,6 +46,9 @@ import glob | ||||
| import shutil | ||||
| import os.path | ||||
| 
 | ||||
| plugins = [s for s in os.listdir('plugins') if | ||||
|            os.path.exists(os.path.join('plugins', s, 'plugin.py'))] | ||||
| 
 | ||||
| def normalizeWhitespace(s): | ||||
|     return ' '.join(s.split()) | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 James Vega
						James Vega