Skip to content

Commit

Permalink
Check if gdrive authorization has been successfully completed
Browse files Browse the repository at this point in the history
  • Loading branch information
wkentaro committed Nov 23, 2016
1 parent bdcaa83 commit 86d9851
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 86d9851

Please sign in to comment.