1
0
Fork 0
mirror of https://gitlab.com/oloturia/damastodon.git synced 2025-01-06 21:47:15 +01:00

fixed login.py, now it can be called from another dir

This commit is contained in:
oloturia 2021-11-12 17:41:53 +01:00
parent af52f887fd
commit 0093618940

View file

@ -1,8 +1,12 @@
from mastodon import Mastodon
import os
fileDir = os.path.dirname(os.path.abspath(__file__))
fileDir = fileDir +"/"
def login(url):
mastodon = Mastodon(
access_token = "DAMA.SECRET",
access_token = fileDir+"DAMA.SECRET",
api_base_url = url
)
return mastodon