Setting user defined workspace using raw_input

Discussion created by noamroze on Oct 8, 2012
Latest reply on Oct 10, 2012 by Caleb1987
This should be easy enough, but i'm stuck on it for days:
I want to write a script (not using a parameter) that before performing the specific action (buffer, copy, or whatever)
will ask the user where is the workspace, and he (the user) will copy-paste it into a raw_input box
(meaning the script has to contain an option to add a backslash to each backslash).
Than, the env.workspace will be defined based on what was pasted into the raw_input box.

Thanks for any help!