| 3997 | |
| 3998 | |
| 3999 | static 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 | |
| 4033 | static int tkinter2Present(void) |
no test coverage detected