FAQ

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):
Here you define chkpth, but you never call it... Why have you made this
into a separate function inside of myfunction? It seems you should remove
this def and unindent everything under it.

-Mark

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 5 of 7 | next ›
Discussion Overview
grouppython-list @
categoriespython
postedOct 21, '03 at 8:55p
activeOct 24, '03 at 6:26p
posts7
users5
websitepython.org

People

Translate

site design / logo © 2022 Grokbase