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

Function python2Present

external/tinyfiledialogs.c:3965–3996  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3963
3964
3965static int python2Present(void)
3966{
3967 static int lPython2Present = -1 ;
3968 int i;
3969
3970 if ( lPython2Present < 0 )
3971 {
3972 lPython2Present = 0 ;
3973 strcpy(gPython2Name , "python2" ) ;
3974 if ( detectPresence(gPython2Name) ) lPython2Present = 1;
3975 else
3976 {
3977 for ( i = 9 ; i >= 0 ; i -- )
3978 {
3979 sprintf( gPython2Name , "python2.%d" , i ) ;
3980 if ( detectPresence(gPython2Name) )
3981 {
3982 lPython2Present = 1;
3983 break;
3984 }
3985 }
3986 /*if ( ! lPython2Present )
3987 {
3988 strcpy(gPython2Name , "python" ) ;
3989 if ( detectPresence(gPython2Name) ) lPython2Present = 1;
3990 }*/
3991 }
3992 if (tinyfd_verbose) printf("lPython2Present %d\n", lPython2Present) ;
3993 if (tinyfd_verbose) printf("gPython2Name %s\n", gPython2Name) ;
3994 }
3995 return lPython2Present ;
3996}
3997
3998
3999static int python3Present(void)

Callers 2

tkinter2PresentFunction · 0.85
pythonDbusPresentFunction · 0.85

Calls 1

detectPresenceFunction · 0.85

Tested by

no test coverage detected