mirror of
https://github.com/xcat2/confluent.git
synced 2025-01-14 03:37:49 +00:00
Arrange things so that the startup py is in bin
This commit is contained in:
parent
f31d7d1ac6
commit
ac8e0df051
8
bin/confluent-server.py
Normal file
8
bin/confluent-server.py
Normal file
@ -0,0 +1,8 @@
|
||||
import sys
|
||||
import os
|
||||
path = os.path.dirname(os.path.realpath(__file__))
|
||||
path = os.path.realpath(os.path.join(path, '..'))
|
||||
sys.path.append(path)
|
||||
from confluent import main
|
||||
|
||||
main.run()
|
@ -18,6 +18,7 @@ import multiprocessing
|
||||
import sys
|
||||
import os
|
||||
|
||||
pluginmap = {}
|
||||
def _load_plugins():
|
||||
# To know our plugins directory, we get the parent path of 'bin'
|
||||
path=os.path.dirname(os.path.realpath(__file__))
|
||||
@ -28,5 +29,9 @@ def _load_plugins():
|
||||
for plugin in os.listdir(plugindir):
|
||||
plugin = os.path.splitext(plugin)[0]
|
||||
plugins.add(plugin)
|
||||
for plugin in plugins:
|
||||
tmpmod = __import__(plugin)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
def run():
|
||||
_load_plugins()
|
||||
|
Loading…
x
Reference in New Issue
Block a user