Anonymous user
Include a file: Difference between revisions
→{{header|Processing Python mode}}: work in progress
m (Add constantes to arm assembly) |
(→{{header|Processing Python mode}}: work in progress) |
||
Line 1,809:
<lang processing>import foo.bar.Test;</lang>
==={{header|Processing Python mode}}===
Processing Python may include modules, .py files, using Python's `import` statements.
1. Sketches must contain a main .pyde file in the sketch directory, of same name. Tabs in the IDE are additional .py files that can be included.
So, for a sketch:
MySketch/
MySketch.pyde
one.py
One can write:
```python
import one # note there is no .py sufix
one.one_function()
object = one.OneClass()
```
or
```
from one import *
```
or, recommended style:
```
from one import OneClass, one_function
one_function()
object = OneClass()
```
=={{header|Prolog}}==
|