Various Mastodon Bots

util.py 250B

12345678910111213
  1. #!/usr/bin/python3
  2. import os
  3. def getAbsolutePath(file, relativePath):
  4. dirname = os.path.dirname(file)
  5. path = os.path.join(dirname, relativePath)
  6. return path
  7. if __name__ == '__main__':
  8. print(getAbsolutePath(__file__, 'secrets/'))