mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Removed the old sys.path-munging code now that we're disutil'ed.
This commit is contained in:
parent
0bbaa4a30c
commit
a13c8ab528
@ -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
|
||||
|
@ -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.
|
||||
|
@ -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('', '')
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user