Skip to content

Commit

Permalink
Update appeears.py
Browse files Browse the repository at this point in the history
  • Loading branch information
eculler authored Jun 5, 2024
1 parent 20e0b17 commit 7dc1093
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion earthpy/appeears.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ def __init__(
if os.path.exists(self.task_id_path):
with open(self.task_id_path, 'r') as task_id_file:
self._task_id = task_id_file.readline()
elif 'APPEEARS_TASKID' in os.environ:
self._task_id = os.environ['APPEEARS_TASKID']
else:
self._task_id = None

Expand Down Expand Up @@ -345,4 +347,4 @@ def download_files(self, cache=True):
f.write(data)

# Remove task id file when download is complete
os.remove(self.task_id_path)
os.remove(self.task_id_path)

0 comments on commit 7dc1093

Please sign in to comment.