yadabadadoooooooo
This commit is contained in:
parent
c0d1e2109a
commit
5f1254c6d4
@ -2,7 +2,7 @@ from view.main import Ui_MainWindow
|
||||
from PyQt4 import QtGui, QtCore
|
||||
from PySide.QtCore import *
|
||||
from PySide.QtGui import *
|
||||
import time, threading, datetime, time, random,re
|
||||
import time, threading, datetime, time, random,re, os
|
||||
from socket import *
|
||||
from view.pmWindow import Ui_Dialog2
|
||||
from view.pmFile import Ui_Dialog3
|
||||
@ -89,6 +89,9 @@ class StreamHandler (Thread):
|
||||
"""
|
||||
print('[Media] Starting media transfer for ' + self.filename)
|
||||
|
||||
if not os.path.exists("download/"):
|
||||
os.makedirs("download/")
|
||||
|
||||
f = open("download/" + self.filename,"wb")
|
||||
while 1:
|
||||
data = self.mconn.recv(1024)
|
||||
|
Reference in New Issue
Block a user