mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-19 23:20:57 +01:00
Guarded inserts into sys.path.
This commit is contained in:
parent
011ebfb3d1
commit
0fe7b81874
@ -42,6 +42,8 @@ import sys
|
|||||||
import pydoc
|
import pydoc
|
||||||
import socket
|
import socket
|
||||||
import pprint
|
import pprint
|
||||||
|
|
||||||
|
if 'src' not in sys.path:
|
||||||
sys.path.insert(0, 'src')
|
sys.path.insert(0, 'src')
|
||||||
|
|
||||||
from fix import *
|
from fix import *
|
||||||
@ -51,6 +53,7 @@ import conf
|
|||||||
import ircdb
|
import ircdb
|
||||||
import ircutils
|
import ircutils
|
||||||
|
|
||||||
|
if conf.pluginDir not in sys.path:
|
||||||
sys.path.insert(0, conf.pluginDir)
|
sys.path.insert(0, conf.pluginDir)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user