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 #!/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 * from fix import *
import os import os

View File

@ -31,6 +31,8 @@
from fix import * from fix import *
import sys
import sets import sets
import os.path import os.path
@ -46,7 +48,8 @@ import os.path
logDir = 'logs' logDir = 'logs'
confDir = 'conf' confDir = 'conf'
dataDir = 'data' 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. # Files.

View File

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

View File

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