MCPcopy Create free account
hub / github.com/crossuo/crossuo / python3Present

Function python3Present

external/tinyfiledialogs.c:3999–4030  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3997
3998
3999static int python3Present(void)
4000{
4001 static int lPython3Present = -1 ;
4002 int i;
4003
4004 if ( lPython3Present < 0 )
4005 {
4006 lPython3Present = 0 ;
4007 strcpy(gPython3Name , "python3" ) ;
4008 if ( detectPresence(gPython3Name) ) lPython3Present = 1;
4009 else
4010 {
4011 for ( i = 9 ; i >= 0 ; i -- )
4012 {
4013 sprintf( gPython3Name , "python3.%d" , i ) ;
4014 if ( detectPresence(gPython3Name) )
4015 {
4016 lPython3Present = 1;
4017 break;
4018 }
4019 }
4020 /*if ( ! lPython3Present )
4021 {
4022 strcpy(gPython3Name , "python" ) ;
4023 if ( detectPresence(gPython3Name) ) lPython3Present = 1;
4024 }*/
4025 }
4026 if (tinyfd_verbose) printf("lPython3Present %d\n", lPython3Present) ;
4027 if (tinyfd_verbose) printf("gPython3Name %s\n", gPython3Name) ;
4028 }
4029 return lPython3Present ;
4030}
4031
4032
4033static int tkinter2Present(void)

Callers 2

tkinter3PresentFunction · 0.85
pythonDbusPresentFunction · 0.85

Calls 1

detectPresenceFunction · 0.85

Tested by

no test coverage detected