Skip to content

Commit

Permalink
Path fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
wtgee committed Nov 12, 2023
1 parent f0a53ee commit b5dc853
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/panoptes/pocs/observatory.py
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ def upload_exposure(self, exposure_info, bucket_name=None):
self.logger.debug(f'Preparing {image_path} for upload')

# Remove the local images directory for the upload name and replace with PAN_ID.
images_dir = self.get_config('directories.images', default=Path('~/images')).expanduser().as_posix()
images_dir = Path(self.get_config('directories.images', default=Path('~/images'))).expanduser().as_posix()
bucket_path = Path(image_path[image_path.find(images_dir + len(images_dir)):] + '/' + str(self.get_config('pan_id')))

# Create a separate process for the upload.
Expand Down

0 comments on commit b5dc853

Please sign in to comment.