title: How do i use Subprocess.popen() with pyinstaller?
body: <p>I have a bunch of code and one of the lines is this (in abc.py):</p>
  
  <p><code>meow = subprocess.Popen("python ./Functions/cat.py")</code></p>
  
  <p>Now when i use <code>pyinstaller.exe --onefile .\abc.py</code></p>
  
  <p>It makes me a single exe and it implements all the function but the function containing above line does not work.</p>
  
  <p>How do i include cat.py in exe and use it with subprocess.popen?</p>
  
  <p>My folder view is </p>
  
  <blockquote>
  <pre><code>    -Project x
               -abc.py
               -Functions
                        -cat.py
                        -me.py
                        -ow.py
  </code></pre>
  </blockquote>
  
  <p>Cat.py has a function which listens for input and runs forever till i have to stop it based on certain input.</p>
  
  <p>I am running abc.py and based on certain input i have to run cat.py along with abc.py and on some another input i have to stop cat.py(using .kill()) and abc.py will still be running.</p>
  
  <p>How do i implement this in a single exe using pyinstaller?</p>