14 lines
486 B
Python
14 lines
486 B
Python
import getch
|
|
from amqp.config.amq_configuration import AMQConfiguration
|
|
|
|
from clever_swarm_adapter import CleverSwarmAmqpAdapter
|
|
|
|
if __name__ == "__main__":
|
|
adapter = CleverSwarmAmqpAdapter(AMQConfiguration('./application.properties.local'))
|
|
|
|
print("Press the space bar to exit...")
|
|
while True:
|
|
key = getch.getch() # Wait for a keypress
|
|
if key == ' ': # Check if the key is the space bar
|
|
print("Space bar pressed. Exiting...")
|
|
break |