title: How to launch python script from mpv/lua
body: <p>I have written an mpv script in python using</p>
  <p><a href="https://github.com/iwalton3/python-mpv-jsonipc" rel="nofollow noreferrer">https://github.com/iwalton3/python-mpv-jsonipc</a></p>
  <p>I'm now trying to launch the script when mpv opens but cant seem to get it to launch I tried running from mpv with</p>
  <blockquote>
  <p>mp.command(&quot;run&quot;, &quot;python3&quot;, &quot;D:\TingTingin\pycharmprojects\mpvipc\got launched.py&quot;)</p>
  </blockquote>
  <p>and lua</p>
  <blockquote>
  <p>os.execute(&quot;D:\TingTingin\pycharmprojects\mpvipc\got launched.py&quot;)</p>
  </blockquote>
  <p>but the script doesn't run im not sure what im doing wrong</p>