Small corrections in the Embedded Python section
This commit is contained in:
parent
0357f92f81
commit
2b8743d502
1 changed files with 2 additions and 2 deletions
|
|
@ -7656,11 +7656,11 @@ for loop), then the data reverts back to its raw state.
|
|||
@node Embedded Python, Amounts, Queries, Extending with 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
|
||||
python
|
||||
import so
|
||||
import os
|
||||
def check_path(path_value):
|
||||
print "%s => %s" % (str(path_value), os.path.isfile(str(path_value)))
|
||||
return os.path.isfile(str(path_value))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue