File: script_runner.py

package info (click to toggle)
ros-bloom 0.13.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,212 kB
  • sloc: python: 8,113; makefile: 322; xml: 19
file content (10 lines) | stat: -rw-r--r-- 305 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
import os
from subprocess import Popen


def popen_bloom_script(cmd, **kwargs):
    this_location = os.path.abspath(os.path.dirname(__file__))
    bin_location = os.path.join(this_location, '..', 'bin')
    cmd = "%s%s%s" % (bin_location, os.path.sep, cmd)
    proc = Popen(cmd, **kwargs)
    return proc