How to run Tensorboard from python scipt in virtualenv? : <p>Tensorboard should be started from commnad line like that:</p>

<pre><code>tensorboard --logdir=path
</code></pre>

<p>I need to run it from code. Until now I use this:</p>

<pre><code>import os
os.system('tensorboard --logdir=' + path)
</code></pre>

<p>However tensorboard do not start because is not included in the system path. I use PyCharm with virtualenv on windows. I don't want to change system paths so the only option is to run it from virtualenv. How to do this? </p>
