On Wed, 22 Oct 2003 17:09:54 +0100, Rigga wrote:
I have tried the code you supplied however it still does not return the
reply as expected, I have even tried the following code but I just cant get
it to return a variable from a module:
My module: we will call it filechk.py
********************************************************************
import sys
import os
def myfunction():
reply = 'repeat'
FilePath = raw_input("Enter path to files: ")
def chkpth(FilePath):
I have tried the code you supplied however it still does not return the
reply as expected, I have even tried the following code but I just cant get
it to return a variable from a module:
My module: we will call it filechk.py
********************************************************************
import sys
import os
def myfunction():
reply = 'repeat'
FilePath = raw_input("Enter path to files: ")
def chkpth(FilePath):
into a separate function inside of myfunction? It seems you should remove
this def and unindent everything under it.
-Mark