Skip to content

Commit

Permalink
add debug message for file:// schema (ref fkanehiro#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
yosuke committed Jan 8, 2016
1 parent 003dde5 commit 3e8cbe0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion simtrans/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ def resolveFile(f):
try:
if f.count('file://') > 0:
ff = os.path.expanduser(f.replace('file://', ''))
return ff
if os.path.exists(ff):
logger.debug('resolveFile resolved to %s' % ff)
return ff
if f.count('model://') > 0:
fn = f.replace('model://', '')
paths = ['.', '~/.gazebo/models']
Expand Down

0 comments on commit 3e8cbe0

Please sign in to comment.