Use 'global':

def change_filename():
   global filename
   filename=raw_input()


def change_path():
   global path
   path=raw_input()


Even better, don't use globals at all; in 99% if the time, there are
better ways to achieve the same effect.

George

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to