mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +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
|
#!/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
|
||||||
|
@ -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.
|
||||||
|
@ -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('', '')
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user