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

adds module version to __init__.py

parent 26d76f5a
...@@ -29,6 +29,8 @@ ...@@ -29,6 +29,8 @@
# Outputs # Outputs
**/output/* **/output/*
**/outputs/*
**/videos/*
*.tmp *.tmp
# Isaac-Sim packman # Isaac-Sim packman
......
...@@ -30,6 +30,7 @@ Usage: ...@@ -30,6 +30,7 @@ Usage:
import gym # noqa: F401 import gym # noqa: F401
import os import os
import toml
# Conveniences to other module directories via relative paths # Conveniences to other module directories via relative paths
ORBIT_CONTRIB_ENVS_EXT_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), "../../../")) 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 ...@@ -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") ORBIT_CONTRIB_ENVS_DATA_DIR = os.path.join(ORBIT_CONTRIB_ENVS_EXT_DIR, "data")
"""Path to the extension data directory.""" """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. ...@@ -9,13 +9,14 @@ Python module with robotic environments.
import os import os
import toml
# Conveniences to other module directories via relative paths # Conveniences to other module directories via relative paths
ORBIT_EXT_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), "../../../")) ORBIT_EXT_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), "../../../"))
"""Path to the extension source directory.""" """Path to the extension source directory."""
ORBIT_DATA_DIR = os.path.join(ORBIT_EXT_DIR, "data") ORBIT_METADATA = toml.load(os.path.join(ORBIT_EXT_DIR, "config", "extension.toml"))
"""Path to the extension data directory.""" """Extension metadata dictionary parsed from the extension.toml file."""
__author__ = "Mayank Mittal" # Configure the module-level variables
__email__ = "mittalma@ethz.ch" __version__ = ORBIT_METADATA["package"]["version"]
...@@ -30,6 +30,7 @@ Usage: ...@@ -30,6 +30,7 @@ Usage:
import gym import gym
import os import os
import toml
# Conveniences to other module directories via relative paths # Conveniences to other module directories via relative paths
ORBIT_ENVS_EXT_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), "../../../")) 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__), ".. ...@@ -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") ORBIT_ENVS_DATA_DIR = os.path.join(ORBIT_ENVS_EXT_DIR, "data")
"""Path to the extension data directory.""" """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 # 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