mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Guarded inserts into sys.path.
This commit is contained in:
parent
7a51fccaf9
commit
442392b5ba
@ -2,7 +2,9 @@
|
||||
|
||||
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 *
|
||||
|
@ -29,7 +29,10 @@
|
||||
# POSSIBILITY OF SUCH DAMAGE.
|
||||
###
|
||||
import sys
|
||||
|
||||
if 'src' not in sys.path:
|
||||
sys.path.insert(0, 'src')
|
||||
|
||||
from fix import *
|
||||
from questions import *
|
||||
|
||||
|
@ -2,6 +2,8 @@
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
if 'src' not in sys.path:
|
||||
sys.path.insert(0, 'src')
|
||||
|
||||
from questions import *
|
||||
|
@ -40,6 +40,8 @@ import time
|
||||
import optparse
|
||||
|
||||
started = time.time()
|
||||
|
||||
if 'src' not in sys.path:
|
||||
sys.path.insert(0, 'src')
|
||||
|
||||
import conf
|
||||
|
@ -30,14 +30,17 @@
|
||||
###
|
||||
|
||||
import sys
|
||||
if 'src' not in sys.path:
|
||||
sys.path.insert(0, 'src')
|
||||
if 'test' not in sys.path:
|
||||
sys.path.insert(0, 'test')
|
||||
sys.path.insert(0, 'plugins')
|
||||
|
||||
|
||||
import conf
|
||||
conf.dataDir = 'test-data'
|
||||
|
||||
if conf.pluginDir not in sys.path:
|
||||
sys.path.insert(0, conf.pluginDir)
|
||||
|
||||
from fix import *
|
||||
|
||||
import gc
|
||||
|
@ -5,7 +5,10 @@ Converts from a "key => value\n" format to a cdb database.
|
||||
"""
|
||||
|
||||
import sys
|
||||
|
||||
if 'src' not in sys.path:
|
||||
sys.path.insert(0, 'src')
|
||||
|
||||
import re
|
||||
|
||||
import cdb
|
||||
|
Loading…
Reference in New Issue
Block a user