|
|
@ -1,6 +1,11 @@
|
|
|
|
#!/usr/bin/env python
|
|
|
|
#!/usr/bin/env python
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
try:
|
|
|
|
from pydrive.auth import GoogleAuth
|
|
|
|
from pydrive.auth import GoogleAuth
|
|
|
|
|
|
|
|
from googleapiclient.errors import HttpError
|
|
|
|
|
|
|
|
gdrive_support= True
|
|
|
|
|
|
|
|
except ImportError:
|
|
|
|
|
|
|
|
gdrive_support=False
|
|
|
|
|
|
|
|
|
|
|
|
import mimetypes
|
|
|
|
import mimetypes
|
|
|
|
import logging
|
|
|
|
import logging
|
|
|
@ -56,8 +61,6 @@ import io
|
|
|
|
import hashlib
|
|
|
|
import hashlib
|
|
|
|
import threading
|
|
|
|
import threading
|
|
|
|
|
|
|
|
|
|
|
|
from googleapiclient.errors import HttpError
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
from tornado import version as tornadoVersion
|
|
|
|
from tornado import version as tornadoVersion
|
|
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|