yadabadadoooooooo

This commit is contained in:
DonRenando 2015-04-16 13:10:45 +02:00
parent c0d1e2109a
commit 5f1254c6d4
1 changed files with 4 additions and 1 deletions

View File

@ -2,7 +2,7 @@ from view.main import Ui_MainWindow
from PyQt4 import QtGui, QtCore from PyQt4 import QtGui, QtCore
from PySide.QtCore import * from PySide.QtCore import *
from PySide.QtGui import * from PySide.QtGui import *
import time, threading, datetime, time, random,re import time, threading, datetime, time, random,re, os
from socket import * from socket import *
from view.pmWindow import Ui_Dialog2 from view.pmWindow import Ui_Dialog2
from view.pmFile import Ui_Dialog3 from view.pmFile import Ui_Dialog3
@ -88,6 +88,9 @@ class StreamHandler (Thread):
:return: :return:
""" """
print('[Media] Starting media transfer for ' + self.filename) print('[Media] Starting media transfer for ' + self.filename)
if not os.path.exists("download/"):
os.makedirs("download/")
f = open("download/" + self.filename,"wb") f = open("download/" + self.filename,"wb")
while 1: while 1: