| 3963 | |
| 3964 | |
| 3965 | static 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 | |
| 3999 | static int python3Present(void) |
no test coverage detected