2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-14 19:57:50 +00:00

Arrange things so that the startup py is in bin

This commit is contained in:
Jarrod Johnson 2013-07-19 10:31:02 -04:00
parent f31d7d1ac6
commit ac8e0df051
2 changed files with 14 additions and 1 deletions

8
bin/confluent-server.py Normal file
View 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()

View File

@ -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()