Script which only runs in Windows
Darrell Gallion
darrell at dorb.com
Tue Jun 27 00:31:35 EDT 2000
----- Original Message -----
From: <al at servana.com>
To: <python-list at cwi.nl>
Sent: Monday, June 26, 2000 1:05 PM
Subject: Script which only runs in Windows
> Hello.
>
> We have an odd problem with Python which we cannot resolve.
>
> Below, is a script we have been running in Win32 for months.
>
> We moved our scripts from Win32 to Slackware Linux and IF statements
> which
> are not in functions or classes will cause errors when you
> try to run the script.
>
> I have had retyped the script thinking it was the tab/space
> issue, but nothing changes - in Linux we cannot use IF outside
> a function or CLASS for some reason.
>
> We are posting this here as it seems very serious and we were hoping
> someone else had seen the problem.
>
> #
> # here is where we do some work
> #
> try:
> sResult = os.system('python ftpasget.py -q -g * -d ' + sFileTime
> + ' -l ' + sSugLogin + ' -p ' + sSugPWord + ' ' + sSugSite + ' ' +
> sBillDir + ' ' + sOutputDir + sDirTime)
> except:
> sGetMinutes = 0
>
I'd say the os.system call is failing.
Try printing it out and testing it manually.
This causes sResult to not exist.
--Darrell
More information about the Python-list
mailing list