flow-python
will, by default, auto-update thesemaphor-backend
subprocess (without any changes in source code).
- With the new auto-updates feature in Semaphor, the path to locate
semaphor-backend
andflowapp/schema
was updated. If you are using the latest version of Semaphor with auto-updates, then you need to installflow-python
v0.5.
- flowappglue now handles its own logging, therefore
Flow.__init__()
method does not need theglue_out_filename
argument anymore. Logs are now placed under the directory specified by thedb_dir
argument, and are of the formsemaphor_${timestamp_in_microseconds}.log
.
-
Config directory name is updated from
semaphor
toflow-python
. This change is needed to avoid collision with Semaphor config directory. The full path of the config directory depends on the platform:- Windows: ~\AppData\Local\semaphor
- Linux: ~/.config/semaphor
- OSX: ~/Library/Application Support/semaphor
If you have a bot running with version <0.3, then you should do one of these before updating flow-python:
- If you are using flow-python along with Semaphor, then you have to update your bot code to use the existing
semaphor
directory:# e.g. on Linux import os from flow import Flow db_dir = '%s/.config/semaphor' % os.environ["HOME"] attachment_dir = os.path.join(db_dir, 'downloads') flow = Flow(db_dir=db_dir, attachment_dir=attachment_dir)
- If you are using flow-python without Semaphor, then you can:
- Stop bot execution.
- Rename the
semaphor
config dir toflow-python
config dir. - Update flow-python to 0.3.
- Start the bot again.