python script question

Ken ken at hotmail.com
Mon Oct 21 11:31:04 EDT 2002


Hi all, just like to ask if python CGI script can be mix with python Shell
script?

I.e. if:
file1 is CGI (#!/usr/local/bin/python)
and file2 is shell script (#!/bin/sh)

can I have "import file2" inside file1 and use the functions inside file2?

Also, does the shell script have *.py extension?

Thanks





More information about the Python-list mailing list