title: filepath autocompletion using users input
body: <p>(python)</p>
  
  <p>I'm looking to grab a users input for a filepath. It seems pretty basic, but I can't seem to get readline or rlcompleter working. </p>
  
  <p>Pretty much:
  variable = raw_input(' Filepath: ')    and then the filepath has autocomplete functions like it would in a shell. </p>
  
  <p>I'm not restricted to python, I'm willing to use any language so long as I can set a variable as the filepath and grab the filepath using  autocomplete functionality. </p>
  
  <p>I've seen this:  <a href="https://stackoverflow.com/questions/5637124/tab-completion-in-pythons-raw-input">Tab completion in Python&#39;s raw_input()</a>   which helped me get an idea of what to look for, although the problem was that it required a command in front of the filepath such as "extra". I need to set the variable as the filepath. You'd think it'd be pretty simple, but I haven't found much on it anywhere, and the few that I have found weren't exactly what I was looking for. </p>
  
  <p>In bash there was a read -e command that can be run in a command line, but it's not recognized in a script which was odd. It's exactly what I was looking for, if only it could be utilized inside of a script to set the variable equal to the autocompleted filepath.</p>