Skip to content

Commit

Permalink
fixed config file parsing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kalyanvasudev committed Jun 22, 2019
1 parent 303d87c commit a27649d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pyrobot/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ def __init__(self,
cfg_path = os.path.join(root_path, 'cfg')
robot_pool = []
for f in os.listdir(cfg_path):
if '_config.py' in f:
robot_pool.append(f.strip('_config.py'))
if f.endswith('_config.py'):
robot_pool.append(f[:-len('_config.py')])
root_node = 'pyrobot.'
self.configs = None
this_robot = None
Expand Down

0 comments on commit a27649d

Please sign in to comment.