Removed unused imports and some other stuff

This commit is contained in:
monsta 2014-03-28 14:46:28 +04:00
parent 8c2ef69ca9
commit 52a030411a
3 changed files with 1 additions and 12 deletions

View File

@ -9,7 +9,6 @@ from gi.repository import Gio
try:
import sys
from gi.repository import Pango
import os
import commands
import gettext
@ -18,7 +17,6 @@ try:
import gc
import ctypes
from ctypes import *
import capi
import xdg.Config
import keybinding
import pointerMonitor
@ -28,14 +26,12 @@ except Exception, e:
GObject.threads_init()
gtk = CDLL("libgtk-x11-2.0.so.0")
gdk = CDLL("libgdk-x11-2.0.so.0")
# Rename the process
architecture = commands.getoutput("uname -a")
if (architecture.find("x86_64") >= 0):
import ctypes
libc = ctypes.CDLL('libc.so.6')
libc = CDLL('libc.so.6')
libc.prctl(15, 'mintmenu', 0, 0, 0)
else:
import dl

View File

@ -6,8 +6,6 @@ gi.require_version("Gtk", "2.0")
from gi.repository import Gtk, Pango, Gdk, Gio, GLib
import os
#import mateconf
import fnmatch
import time
import string
import gettext
@ -16,7 +14,6 @@ import commands
import subprocess
import filecmp
import ctypes
import capi
from ctypes import *
from easybuttons import *
from execute import Execute

View File

@ -2,11 +2,7 @@ import gi
gi.require_version("Gtk", "2.0")
from gi.repository import Gtk, Pango
import sys
import os
import gobject
import datetime
import fcntl
from easygsettings import EasyGSettings
from execute import Execute
from easyfiles import *