Skip to content

Commit

Permalink
Merge pull request #1485 from wkentaro/jsk-data-check-if-initialized
Browse files Browse the repository at this point in the history
[jsk_data] Check if gdrive authorization has been successfully completed
  • Loading branch information
k-okada authored Nov 23, 2016
2 parents bdcaa83 + 86d9851 commit 82e3dd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jsk_data/src/jsk_data/gdrive.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def _init_gdrive():
ros_home = os.getenv('ROS_HOME', os.path.expanduser('~/.ros'))
pkg_ros_home = os.path.join(ros_home, 'jsk_data')
config = os.path.join(pkg_ros_home, '.gdrive')
if os.path.exists(config):
if os.path.exists(os.path.join(config, 'token.json')):
return
if not os.path.exists(pkg_ros_home):
os.makedirs(pkg_ros_home)
Expand Down

0 comments on commit 82e3dd7

Please sign in to comment.