-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
29 lines (29 loc) · 1008 Bytes
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import os, socket
# Set scopes and credentials for Google APIs
SCOPES = [
'https://www.googleapis.com/auth/drive.metadata.readonly',
'https://www.googleapis.com/auth/drive.file',
'https://www.googleapis.com/auth/drive'
]
CLIENT_SECRET_FILE = 'client_secret.json'
APPLICATION_NAME = 'Drive Sync'
# Set path to the uploaded folder is located
FULL_PATH = os.path.abspath(
os.path.join(
os.path.dirname( __file__ ), 'backups', socket.gethostname()
)
)
DIR_NAME = socket.gethostname()
# Set Mime type for uploaded folder
GOOGLE_MIME_TYPES = {
'application/vnd.google-apps.document':
'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
'application/vnd.google-apps.spreadsheet':
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
'application/vnd.google-apps.presentation':
'application/vnd.openxmlformats-officedocument.presentationml.presentation'
}
# Set excluded files
EXCLUDED_FILES = [
".DS_Store"
]