diff --git a/login.py b/login.py index b816ea6..1f857ac 100644 --- a/login.py +++ b/login.py @@ -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