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
__author__ = 'Evgeny Chernigovsky' | |
import sys | |
import queue | |
import threading | |
import subprocess | |
from PySide import QtGui | |
threadCount = 10 |
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
__author__ = 'Evgeny Chernigovsky' | |
import logging | |
def logging_decorator(filename): | |
def inner_decorator(func): | |
def wrap(*args, **kwargs): | |
logging.basicConfig(filename=filename, level=logging.INFO) |
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
__author__ = 'Evgeny Chernigovsky' | |
import time | |
def time_decorator(func): | |
def wrap(*args, **kwargs): | |
start_time = time.time() | |
func(*args, **kwargs) | |
end_time = time.time() |
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
import os | |
import shutil | |
__author__ = 'Evgeny Chernigovsky' | |
class Command: | |
def __init__(self, function, arg_count): | |
self.execute = function | |
self.arg_count = arg_count |