def create_compiler_path(xml_generator, compiler_path):
if xml_generator == '<STR_LIT>' and compiler_path is None:<EOL><INDENT>if platform.system() == '<STR_LIT>':<EOL><INDENT>p = subprocess.Popen(<EOL>['<STR_LIT>', '<STR_LIT>'],<EOL>stdout=subprocess.PIPE,<EOL>stderr=subprocess.PIPE)<EOL>compiler_path = p.stdout.read().decode("<STR_LIT:utf-8>").rstrip()<EOL>p.wait()<EOL>p.stdout.close()<EOL>p.stderr.close()<EOL>if compiler_path == '<STR_LIT>':<EOL><INDENT>p = subprocess.Popen(<EOL>['<STR_LIT>', '<STR_LIT>'],<EOL>stdout=subprocess.PIPE,<EOL>stderr=subprocess.PIPE)<EOL>compiler_path = p.stdout.read().decode("<STR_LIT:utf-8>").rstrip()<EOL>p.wait()<EOL>p.stdout.close()<EOL>p.stderr.close()<EOL><DEDENT><DEDENT>else:<EOL><INDENT>p = subprocess.Popen(<EOL>['<STR_LIT>', '<STR_LIT>'],<EOL>stdout=subprocess.PIPE,<EOL>stderr=subprocess.PIPE)<EOL>compiler_path = p.stdout.read().decode("<STR_LIT:utf-8>").rstrip()<EOL>p.wait()<EOL>p.stdout.close()<EOL>p.stderr.close()<EOL>if compiler_path == '<STR_LIT>':<EOL><INDENT>p = subprocess.Popen(<EOL>['<STR_LIT>', '<STR_LIT>'],<EOL>stdout=subprocess.PIPE,<EOL>stderr=subprocess.PIPE)<EOL>compiler_path = p.stdout.read().decode("<STR_LIT:utf-8>").rstrip()<EOL>p.wait()<EOL>p.stdout.close()<EOL>p.stderr.close()<EOL><DEDENT><DEDENT>if compiler_path == "<STR_LIT>":<EOL><INDENT>compiler_path = None<EOL><DEDENT><DEDENT>return compiler_path<EOL>
Try to guess a path for the compiler.

If you want ot use a specific compiler, please provide the compiler
path manually, as the guess may not be what you are expecting.
Providing the path can be done by passing it as an argument (compiler_path)
to the xml_generator_configuration_t() or by defining it in your pygccxml
configuration file.