title: How to pass a directory path to os.execvp
body: <p>I'm trying to <a href="https://rethinkdb.com/docs/cli-options/" rel="nofollow">change directory path of RethinkDB</a> while executing from Python.</p>
  
  <p>This Bash command is working:</p>
  
  <pre><code>rethinkdb --directory ~/ComeOnRethink
  </code></pre>
  
  <p>But this system call is not working:</p>
  
  <pre><code>args = ("--directory ~/ComeOnRethink",) # RethinkDB directory to store data and metadata
  os.execvp("rethinkdb", args)
  </code></pre>
  
  <p>It's ignoring the argument and executing RethinkDB with default path. How can I fix this problem?</p>
  
  <p>*This is working:</p>
  
  <pre><code>subprocess.Popen(['rethinkdb', '--directory', './ComeOnRethink'])
  </code></pre>