diff options
author | erwincoumans <erwin.coumans@gmail.com> | 2018-04-11 18:00:43 -0700 |
---|---|---|
committer | erwincoumans <erwin.coumans@gmail.com> | 2018-04-11 18:00:43 -0700 |
commit | 2bc246b0b1c08d42c99b33e57fc10c72a7a23801 (patch) | |
tree | 4ad1c799cb3e02d77e844b85abd177f12d18a2f6 /examples/pybullet/gym/pybullet_envs/minitaur/envs/minitaur.py | |
parent | b18d407ca482688f82c0d492df09d03f925a60f9 (diff) | |
download | bullet3-2bc246b0b1c08d42c99b33e57fc10c72a7a23801.tar.gz |
fixes in relative imports
Diffstat (limited to 'examples/pybullet/gym/pybullet_envs/minitaur/envs/minitaur.py')
-rw-r--r-- | examples/pybullet/gym/pybullet_envs/minitaur/envs/minitaur.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/examples/pybullet/gym/pybullet_envs/minitaur/envs/minitaur.py b/examples/pybullet/gym/pybullet_envs/minitaur/envs/minitaur.py index cd5749d22..efe32837c 100644 --- a/examples/pybullet/gym/pybullet_envs/minitaur/envs/minitaur.py +++ b/examples/pybullet/gym/pybullet_envs/minitaur/envs/minitaur.py @@ -1,13 +1,19 @@ """This file implements the functionalities of a minitaur using pybullet. """ + +import os, inspect +currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) +parentdir = os.path.dirname(os.path.dirname(currentdir)) +os.sys.path.insert(0,parentdir) + import collections import copy import math import re import numpy as np -import motor +from pybullet_envs.minitaur.envs import motor INIT_POSITION = [0, 0, .2] INIT_RACK_POSITION = [0, 0, 1] |