Skip to content

Instantly share code, notes, and snippets.

View ngc696's full-sized avatar

Evgenii Chernigovskii ngc696

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