Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openstructure
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
schwede
openstructure
Commits
d59a22a9
Commit
d59a22a9
authored
13 years ago
by
Bienchen
Browse files
Options
Downloads
Patches
Plain Diff
fixed typo in documentation for new modules
parent
40085b19
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/doc/newmodule.rst
+2
-2
2 additions, 2 deletions
modules/doc/newmodule.rst
with
2 additions
and
2 deletions
modules/doc/newmodule.rst
+
2
−
2
View file @
d59a22a9
...
...
@@ -261,7 +261,7 @@ The `mod/pymod` directory must obviously contain a `CMakeLists.txt` file:
pymod(NAME mod OUTPUT_DIR ost/mod
CPP ${OST_MOD_PYMOD_SOURCES} PY __init__.py)
The directory should also contain an `__init.py
__
` file with the
The directory should also contain an `__init
__
.py` file with the
following content:
.. code-block:: python
...
...
@@ -269,7 +269,7 @@ following content:
from _mod import *
In case one wants to implement Python-only functionality for the new module, any
number of function definitions can be added to the `__init.py
__
` file.
number of function definitions can be added to the `__init
__
.py` file.
That's it!. The next time the OpenStructure project is compiled, the new module
will be built and made available at both the C++ and the Python level.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment