23 |
# $Source$ |
# $Source$ |
24 |
|
|
25 |
import os |
import os |
|
|
|
26 |
from circus import * |
from circus import * |
27 |
|
|
28 |
# this works but the scope of the variable maybe wrong, need to look into |
master = circus.Ringmaster() |
29 |
# global |
|
|
if 'CIRCUS_HOME' in os.environ: |
|
|
CIRCUS_HOME = os.environ['CIRCUS_HOME'] |
|
30 |
|
|
31 |
HOME = os.environ['HOME'] |
master.config.circus_home = os.environ['CIRCUS_HOME'] |
32 |
|
|
33 |
|
# TODO: add support for multiple paths |
34 |
|
master.config.set_module_path(os.environ['CIRCUS_MODULES']) |
35 |
|
|
|
master = circus.Ringmaster() |
|
36 |
print master.display.get_display_name() |
print master.display.get_display_name() |
37 |
|
|
38 |
|
master.load_module("Keybindings") |
39 |
|
|
40 |
|
# Enter the main loop |
41 |
master.loop() |
master.loop() |
42 |
|
|
43 |
|
|