mirror of
https://github.com/leon-ai/leon.git
synced 2024-12-26 02:04:08 +03:00
12 lines
333 B
Python
12 lines
333 B
Python
#!/usr/bin/env python
|
|
# -*- coding:utf-8 -*-
|
|
|
|
from os import path
|
|
from json import loads
|
|
|
|
packagejsonfile = open(path.dirname(path.realpath(__file__)) + '/../../package.json', 'r', encoding = 'utf8')
|
|
packagejson = loads(packagejsonfile.read())
|
|
packagejsonfile.close()
|
|
|
|
useragent = 'Leon-Personal-Assistant/' + packagejson['version']
|