Commit 944606a7 authored by Mayank Mittal's avatar Mayank Mittal

adds module version to __init__.py

parent 26d76f5a
......@@ -29,6 +29,8 @@
# Outputs
**/output/*
**/outputs/*
**/videos/*
*.tmp
# Isaac-Sim packman
......
......@@ -30,6 +30,7 @@ Usage:
import gym # noqa: F401
import os
import toml
# Conveniences to other module directories via relative paths
ORBIT_CONTRIB_ENVS_EXT_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), "../../../"))
......@@ -37,3 +38,9 @@ ORBIT_CONTRIB_ENVS_EXT_DIR = os.path.abspath(os.path.join(os.path.dirname(__file
ORBIT_CONTRIB_ENVS_DATA_DIR = os.path.join(ORBIT_CONTRIB_ENVS_EXT_DIR, "data")
"""Path to the extension data directory."""
ORBIT_CONTRIB_ENVS_METADATA = toml.load(os.path.join(ORBIT_CONTRIB_ENVS_EXT_DIR, "config", "extension.toml"))
"""Extension metadata dictionary parsed from the extension.toml file."""
# Configure the module-level variables
__version__ = ORBIT_CONTRIB_ENVS_METADATA["package"]["version"]
......@@ -9,13 +9,14 @@ Python module with robotic environments.
import os
import toml
# Conveniences to other module directories via relative paths
ORBIT_EXT_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), "../../../"))
"""Path to the extension source directory."""
ORBIT_DATA_DIR = os.path.join(ORBIT_EXT_DIR, "data")
"""Path to the extension data directory."""
ORBIT_METADATA = toml.load(os.path.join(ORBIT_EXT_DIR, "config", "extension.toml"))
"""Extension metadata dictionary parsed from the extension.toml file."""
__author__ = "Mayank Mittal"
__email__ = "mittalma@ethz.ch"
# Configure the module-level variables
__version__ = ORBIT_METADATA["package"]["version"]
......@@ -30,6 +30,7 @@ Usage:
import gym
import os
import toml
# Conveniences to other module directories via relative paths
ORBIT_ENVS_EXT_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), "../../../"))
......@@ -38,6 +39,12 @@ ORBIT_ENVS_EXT_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), "..
ORBIT_ENVS_DATA_DIR = os.path.join(ORBIT_ENVS_EXT_DIR, "data")
"""Path to the extension data directory."""
ORBIT_ENVS_METADATA = toml.load(os.path.join(ORBIT_ENVS_EXT_DIR, "config", "extension.toml"))
"""Extension metadata dictionary parsed from the extension.toml file."""
# Configure the module-level variables
__version__ = ORBIT_ENVS_METADATA["package"]["version"]
##
# Classic control
##
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment