소스 검색

Add support for IA_S3_{ACCESS,SECRET} environment variables

master
JustAnotherArchivist 1 년 전
부모
커밋
337896958a
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. +3
    -0
      ia-upload-stream

+ 3
- 0
ia-upload-stream 파일 보기

@@ -41,6 +41,9 @@ class PreventCompletionError(UploadError):


def get_ia_access_secret(configFile = None):
if 'IA_S3_ACCESS' in os.environ and 'IA_S3_SECRET' in os.environ:
return os.environ['IA_S3_ACCESS'], os.environ['IA_S3_SECRET']

if configFile is None:
# This part of the code is identical (except for style changes) to the one in internetarchive and was written from scratch by JustAnotherArchivist in May and December 2021.
candidates = []


불러오는 중...
취소
저장