Typos in example_batch_cmds.py
This commit is contained in:
parent
aeee73e3ee
commit
ac3657465c
1 changed files with 8 additions and 8 deletions
|
|
@ -2,9 +2,9 @@
|
||||||
# Batchcode script
|
# Batchcode script
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# The Batch-code processor accepts full python modules (e.g. "batch.py") that
|
# The Batch-code processor accepts full Python modules (e.g. "batch.py") that
|
||||||
# looks identical to normal Python files with a few exceptions that allows them
|
# look identical to normal Python files with a few exceptions that allows them
|
||||||
# to the executed in blocks. This way of working assures a sequential execution
|
# to be executed in blocks. This way of working assures a sequential execution
|
||||||
# of the file and allows for features like stepping from block to block
|
# of the file and allows for features like stepping from block to block
|
||||||
# (without executing those coming before), as well as automatic deletion
|
# (without executing those coming before), as well as automatic deletion
|
||||||
# of created objects etc. You can however also run a batch-code python file
|
# of created objects etc. You can however also run a batch-code python file
|
||||||
|
|
@ -15,13 +15,13 @@
|
||||||
# #HEADER - this denotes commands global to the entire file, such as
|
# #HEADER - this denotes commands global to the entire file, such as
|
||||||
# import statements and global variables. They will
|
# import statements and global variables. They will
|
||||||
# automatically be made available for each block. Observe
|
# automatically be made available for each block. Observe
|
||||||
# that changes to these variables made in one block is not
|
# that changes to these variables made in one block are not
|
||||||
# preserved between blocks!)
|
# preserved between blocks!)
|
||||||
# #CODE (infotext) [objname, objname, ...] - This designates a code block that
|
# #CODE (infotext) [objname, objname, ...] - This designates a code block that
|
||||||
# will be executed like a stand-alone piece of code together with
|
# will be executed like a stand-alone piece of code together with
|
||||||
# any #HEADER defined.
|
# any #HEADER defined.
|
||||||
# infotext is a describing text about what goes in in this block.
|
# infotext is a describing text about what goes on in this block.
|
||||||
# It will be shown by the batchprocessing command.
|
# It will be shown by the batch-processing command.
|
||||||
# <objname>s mark the (variable-)names of objects created in
|
# <objname>s mark the (variable-)names of objects created in
|
||||||
# the code, and which may be auto-deleted by the processor if
|
# the code, and which may be auto-deleted by the processor if
|
||||||
# desired (such as when debugging the script). E.g., if the code
|
# desired (such as when debugging the script). E.g., if the code
|
||||||
|
|
@ -54,7 +54,7 @@ limbo = search_object('Limbo')[0]
|
||||||
|
|
||||||
#CODE (create red button)
|
#CODE (create red button)
|
||||||
|
|
||||||
# This is the first code block. Within each block, python
|
# This is the first code block. Within each block, Python
|
||||||
# code works as normal. Note how we make use if imports and
|
# code works as normal. Note how we make use if imports and
|
||||||
# 'limbo' defined in the #HEADER block. This block's header
|
# 'limbo' defined in the #HEADER block. This block's header
|
||||||
# offers no information about red_button variable, so it
|
# offers no information about red_button variable, so it
|
||||||
|
|
@ -75,7 +75,7 @@ caller.msg("A %s was created." % red_button.key)
|
||||||
# again (so as to avoid duplicate objects when testing the script many
|
# again (so as to avoid duplicate objects when testing the script many
|
||||||
# times).
|
# times).
|
||||||
|
|
||||||
# the python variables we assign to must match the ones given in the
|
# the Python variables we assign to must match the ones given in the
|
||||||
# header for the system to be able to delete them afterwards during a
|
# header for the system to be able to delete them afterwards during a
|
||||||
# debugging run.
|
# debugging run.
|
||||||
table = create_object(DefaultObject, key="Table", location=limbo)
|
table = create_object(DefaultObject, key="Table", location=limbo)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue