Skip to content

Commit 349081d

Browse files
author
roman_yakovenko
committed
fixing small bug on Windows, related to parsing configuration file
1 parent dc4edd0 commit 349081d

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

pygccxml/parser/config.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def load_gccxml_configuration( configuration, **defaults ):
231231
gccxml_path=
232232
#gccxml working directory - optional, could be set to your source code directory
233233
working_directory=
234-
#additional include directories, separated by ';' or ':'
234+
#additional include directories, separated by ';'
235235
include_paths=
236236
#gccxml has a nice algorithms, which selects what C++ compiler to emulate.
237237
#You can explicitly set what compiler it should emulate.
@@ -264,10 +264,9 @@ def load_gccxml_configuration( configuration, **defaults ):
264264
gccxml_cfg.working_directory = value
265265
elif name == 'include_paths':
266266
for p in value.split( ';' ):
267-
for pp in p.split( ':' ):
268-
pp = pp.strip()
269-
if pp:
270-
gccxml_cfg.include_paths.append( pp )
267+
p = p.strip()
268+
if p:
269+
gccxml_cfg.include_paths.append( p )
271270
elif name == 'compiler':
272271
gccxml_cfg.compiler = value
273272
else:

unittests/gccxml.cfg

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[gccxml]
2+
#path to gccxml executable file - optional, if not provided, os.environ['PATH']
3+
#variable is used to find it
4+
gccxml_path=
5+
#gccxml working directory - optional, could be set to your source code directory
6+
working_directory=
7+
#additional include directories, separated by ';' or ':'
8+
include_paths=
9+
#gccxml has a nice algorithms, which selects what C++ compiler to emulate.
10+
#You can explicitly set what compiler it should emulate.
11+
#Valid options are: g++, msvc6, msvc7, msvc71, msvc8, cl.
12+
compiler=msvc71
13+
#GCC-XML site: http://gccxml.org/

0 commit comments

Comments
 (0)