Test whether argument path is a Python script.
(self, path)
| 1117 | return executable(path) |
| 1118 | |
| 1119 | def is_python(self, path): |
| 1120 | """Test whether argument path is a Python script.""" |
| 1121 | head, tail = os.path.splitext(path) |
| 1122 | return tail.lower() in (".py", ".pyw") |
| 1123 | |
| 1124 | def run_cgi(self): |
| 1125 | """Execute a CGI script.""" |