Q: Python: How to have to change a variable once, and never change it again flub = raw_input("Where would you like your save directory to be?)
SaveDir = flub

Hello ubuntu, I am writing a python program. My question is, how can I make it so a raw_input asks me a question that defines a variable (in this case variable is flub), then changes the code so that the variable is always the same. When I change the flub variable in the program, I would like it to always remember what I changed the variable to.
Note: this code is just an example, I am really working with an advanced program with a graphical interface, and I didn't want to post it here on the ubuntu fourms. If you have any questions, please ask. 
Thanks ubuntu :)

A: I think

    flub = raw_input('Where would you like your save directory to be?')
    print flub

Will get your variable, pass that to your GUI.
Unless you change it later on in the program, it will remain until restarted / retriggered. To store that value permanently, you would need to write it somewhere lets say a text file, or set your program up to set a true false checking whether that variable has been set yet.
