Files
PyG2O/docs/index.md
AURUMVORXX d779d0a661 feat: Removed CPython separate compilation
+ Upgraded to Python 3.13
+ Added constants to g2o library for auto-completion
2024-11-25 05:11:24 +03:00

1.2 KiB

How to use

  1. Install Python 3.13 Optionally, for Windows instead of installing Python, you can download Windows embeddable package from Python download page, and extract ZIP into your server folder
  2. Download latest module version from the Release page
  3. Unzip downloaded archive into your server directory (you should now have PyG2O.xYY.dll and g2o/ in your root server directory, or similar .so file if you're using linux)
  4. Place .DLL module in the place you want and connect it with config.xml
<module  src="PyG2O.x64.dll"  type="server"  />
  1. Create scripts/ folder in your server root directory, and put an empty __init__.py file inside it

Now, your scripts/ folder is a Python package and serves as an entry point. You can't rename it (at least for now), but inside this folder you can use any file structure you want.

Your entry point should import PyG2O library:

import g2o
# your code

If you make package that uses PyG2O functions, then this package also should also contain import.

Examples

You can find default (example) scripts in this repository