1. Pyro Set Up

To help configure individual systems, system admins and users can create site-wide configuration files, or personal setups, respectively. These files have the following format:

args=string of whatever you want

file = BBWander

file = Aria

file = jeanne.wld

file = Aria




port = /dev/ttyS0

Data can be put into multiple config files. They are loaded in this order:

  1. system-wide .pyrobot or pyrobot.ini file (/usr/local/pyrobot/.pyrobot)

  2. hostname .pyrobot or pyrobot.ini file (/usr/local/pyrobot/

  3. user homedir .pyrobot or pyrobot.ini file ($HOME/.pyrobot)

  4. current directory .pyrobot or pyrobot.ini file ($CWD/.pyrobot)

  5. command line filename given with -i FILENAME

If one or more of these files exist, they will be loaded in the above order, higher numbered ones overwriting lower ones.

You can also add your own sections and items to this file for your own use. For example:

Create a file, say, experiment1.ini:

data = 12
size = 45
name = My name is this

And start pyro like:

% pyrobot -i experiment1.ini

Then you will have access to your information through the engine.config interface. From the command line:

engine.config.get("settings", "data")
engine.config.get("settings", "size")
engine.config.get("settings", "name")

or from your brains:

self.getEngine().config.get("settings", "data")
self.getEngine().config.get("settings", "size")
self.getEngine().config.get("settings", "name")

/!\ These are all strings by default. You'll need to wrap int() around numbers to treat them as integers, for example.