def run_validate_program_main(self, program_main):
        """Validate the program main file exists.

        Args:
            program_main (str): The executable name.
        """
        program_language = self.profile.get('install_json').get('programLanguage', 'python').lower()
        if program_language == 'python' and not os.path.isfile('{}.py'.format(program_main)):
            print(
                '{}{}Could not find program main file ({}).'.format(
                    c.Style.BRIGHT, c.Fore.RED, program_main
                )
            )
            sys.exit(1)
def run_validate_program_main ( self , program_main ) : program_language = self . profile . get ( 'install_json' ) . get ( 'programLanguage' , 'python' ) . lower ( ) if program_language == 'python' and not os . path . isfile ( '{}.py' . format ( program_main ) ) : print ( '{}{}Could not find program main file ({}).' . format ( c . Style . BRIGHT , c . Fore . RED , program_main ) ) sys . exit ( 1 )
Validate the program main file exists.

        Args:
            program_main (str): The executable name.