No need to insert '.' to the head of sys.path

This commit is contained in:
Alessio Treglia 2012-03-08 01:33:27 +01:00
parent 2377bfc160
commit 249bf32fa2
5 changed files with 0 additions and 35 deletions

View File

@ -25,13 +25,6 @@ import time
import signal
import argparse
try:
import imp
imp.find_module('laditools')
except ImportError:
# Running from the build tree?
sys.path.insert(0, os.path.join(sys.path[0], os.pardir))
import laditools
pipe_filename = "/dev/shm/g15log.pipe"

View File

@ -26,13 +26,6 @@ import signal
import gettext
import argparse
try:
import imp
imp.find_module('laditools')
except ImportError:
# Running from the build tree?
sys.path.insert(0, os.path.join(sys.path[0], os.pardir))
from laditools import _gettext_domain
gettext.install(_gettext_domain)

View File

@ -33,13 +33,6 @@ import argparse
sig_handler = signal.getsignal(signal.SIGTERM)
signal.signal(signal.SIGINT, sig_handler)
try:
import imp
imp.find_module('laditools')
except ImportError:
# Running from the build tree?
sys.path.insert(0, os.path.join(sys.path[0], os.pardir))
from laditools import _gettext_domain
gettext.install(_gettext_domain)

View File

@ -28,13 +28,6 @@ import argparse
sig_handler = signal.getsignal(signal.SIGTERM)
signal.signal(signal.SIGINT, sig_handler)
try:
import imp
imp.find_module('laditools')
except ImportError:
# Running from the build tree?
sys.path.insert(0, os.path.join(sys.path[0], os.pardir))
from laditools import _gettext_domain
gettext.install(_gettext_domain)

7
wmladi
View File

@ -30,13 +30,6 @@ import gettext
sig_handler = signal.getsignal(signal.SIGTERM)
signal.signal(signal.SIGINT, sig_handler)
try:
import imp
imp.find_module('laditools')
except ImportError:
# Running from the build tree?
sys.path.insert(0, os.path.join(sys.path[0], os.pardir))
from laditools import _gettext_domain
gettext.install(_gettext_domain)