Created
December 27, 2012 18:47
-
-
Save streamer45/4390812 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from time import sleep | |
import shlex | |
import subprocess | |
KRAD = "krad_radio" | |
class Kradradio: | |
def __init__(self, sysname): | |
self.sysname = sysname | |
def cmd(self, cmd): | |
fullcmd = KRAD+" "+self.sysname+" "+cmd | |
print(fullcmd) | |
subprocess.call(shlex.split(fullcmd)) | |
sleep(0.5) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment