Small corrections in the Embedded Python section

This commit is contained in:
Ryan Nowakowski 2013-02-17 15:43:48 -06:00
parent 0357f92f81
commit 2b8743d502

View file

@ -7656,11 +7656,11 @@ for loop), then the data reverts back to its raw state.
@node Embedded Python, Amounts, Queries, Extending with Python @node Embedded Python, Amounts, Queries, Extending with Python
@section Embedded Python @section Embedded Python
Can you embed Python into your data files using the 'python' directive: You can embed Python into your data files using the 'python' directive:
@smallexample @smallexample
python python
import so import os
def check_path(path_value): def check_path(path_value):
print "%s => %s" % (str(path_value), os.path.isfile(str(path_value))) print "%s => %s" % (str(path_value), os.path.isfile(str(path_value)))
return os.path.isfile(str(path_value)) return os.path.isfile(str(path_value))