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
011ebfb3d1
commit
0fe7b81874
@ -42,7 +42,9 @@ import sys
|
||||
import pydoc
|
||||
import socket
|
||||
import pprint
|
||||
sys.path.insert(0, 'src')
|
||||
|
||||
if 'src' not in sys.path:
|
||||
sys.path.insert(0, 'src')
|
||||
|
||||
from fix import *
|
||||
from questions import *
|
||||
@ -51,7 +53,8 @@ import conf
|
||||
import ircdb
|
||||
import ircutils
|
||||
|
||||
sys.path.insert(0, conf.pluginDir)
|
||||
if conf.pluginDir not in sys.path:
|
||||
sys.path.insert(0, conf.pluginDir)
|
||||
|
||||
if __name__ == '__main__':
|
||||
fd = file('src/template.py')
|
||||
|
Loading…
Reference in New Issue
Block a user