Revision: 1594
http://pygccxml.svn.sourceforge.net/pygccxml/?rev=1594&view=rev
Author: roman_yakovenko
Date: 2009-01-19 21:55:39 +0000 (Mon, 19 Jan 2009)
Log Message:
-----------
small refactoring, which improves code repository files handling
Modified Paths:
--------------
pyplusplus_dev/pyplusplus/code_creators/code_creator.py
Modified: pyplusplus_dev/pyplusplus/code_creators/code_creator.py
===================================================================
--- pyplusplus_dev/pyplusplus/code_creators/code_creator.py 2009-01-19 20:27:59 UTC (rev 1593)
+++ pyplusplus_dev/pyplusplus/code_creators/code_creator.py 2009-01-19 21:55:39 UTC (rev 1594)
@@ -138,7 +138,8 @@
if language == 'python':
selector = lambda f: os.path.splitext( f )[1] in ( '.py' )
elif language == 'c++':
- selector = lambda f: os.path.splitext( f )[1] in ( '.h', '.hpp', '.cpp' )
+ selector = lambda f: ( f.startswith( '<' ) and f.endswith('>') ) \
+ or os.path.splitext( f )[1] in ( '.h', '.hpp', '.cpp' )
else:
selector = None
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|