Fixed abspath

This commit is contained in:
MatMasIt 2022-01-31 09:27:25 +01:00 committed by GitHub
parent 141d05626b
commit 7057cccb08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,8 +26,7 @@ def upload(csvPath):
global auth global auth
vprint("Generating nonce uuid") vprint("Generating nonce uuid")
uid = uuid.uuid4() uid = uuid.uuid4()
content_name = str(csvPath) content_path = csvPath
content_path = os.path.abspath(file)
content_size = os.stat(content_path).st_size content_size = os.stat(content_path).st_size
print(content_name, content_path, content_size) print(content_name, content_path, content_size)