blob: f1c6829b6d023dae0aecd30cce0c7ee7e201d147 (
plain)
1
2
3
4
5
6
7
8
|
from os.path import dirname, realpath, join
def get_version():
directory = dirname(realpath(__file__))
version_file = join(directory, 'version.txt')
with open(version_file, 'r') as infile:
return ''.join(infile.read().split())
|