Removed the old sys.path-munging code now that we're disutil'ed.

This commit is contained in:
Jeremy Fincher 2003-09-24 07:28:25 +00:00
parent 0bbaa4a30c
commit a13c8ab528
4 changed files with 6 additions and 18 deletions

View File

@ -1,12 +1,5 @@
#!/usr/bin/env python
import sys
if 'sys' not in sys.path:
sys.path.insert(0, 'src')
if 'others' not in sys.path:
sys.path.insert(0, 'others')
from fix import *
import os

View File

@ -31,6 +31,8 @@
from fix import *
import sys
import sets
import os.path
@ -46,7 +48,8 @@ import os.path
logDir = 'logs'
confDir = 'conf'
dataDir = 'data'
pluginDirs = ['src', 'plugins']
installDir = os.path.dirname(os.path.dirname(sys.modules[__name__].__file__))
pluginDirs = [os.path.join(installDir, s) for s in ('src', 'plugins')]
###
# Files.

View File

@ -35,11 +35,6 @@
Fixes stuff that Python should have but doesn't.
"""
import sys
if 'others' not in sys.path:
sys.path.insert(0, 'others')
import string
string.ascii = string.maketrans('', '')

View File

@ -29,11 +29,7 @@
# POSSIBILITY OF SUCH DAMAGE.
###
import sys
if 'src' not in sys.path:
sys.path.insert(0, 'src')
if 'test' not in sys.path:
sys.path.insert(0, 'test')
import supybot
import conf
conf.dataDir = 'test-data'
@ -45,6 +41,7 @@ from fix import *
import gc
import re
import sys
import imp
import glob
import time