Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(4)  |  Derive(0)  |  Import(2)

        def newFifo(filename):
    try:
        os.mkfifo(filename)
    except OSError:
        pass
        


src/v/i/VideoPI-HEAD/server.py   VideoPI(Download)
from urlparse import urlparse
from Constants import websites, actionDesc
from Helper import newFifo, newDir
from database import db_getHistory, db_delete
from player import Controller
 
 
newFifo('/tmp/cmd')
newFifo('/tmp/all.ts')
newDir('/tmp/ffmpeg_part')
newDir('/tmp/download_part')
for i in range(1000):
    newFifo('/tmp/download_part/%s' % i)

src/v/i/VideoPI-HEAD/player.py   VideoPI(Download)
from Queue import Queue
from threading import Thread, RLock
from Helper import getScreenSize, newFifo
from Constants import websites
from webparser import Video
            for idx, catCmd in enumerate(catCmds):
                pname = os.path.join(ffmpeg_part, str(idx))
                newFifo(pname)
                if idx == 0 and delta > 30:
                    download_lines.append("{\n%s | %s\n}" % (catCmd, self.getFfmpegCmd(delta, "-", pname)))