mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
15 lines
444 B
Python
15 lines
444 B
Python
import os
|
|
class AlgNames():
|
|
|
|
names = {}
|
|
|
|
@staticmethod
|
|
def getName(shortname):
|
|
if not AlgNames.names:
|
|
f = open(os.path.dirname(__file__) + "/algnames.txt")
|
|
lines = f.readlines()
|
|
for line in lines:
|
|
tokens = line.split(":")
|
|
AlgNames.names[tokens[0].strip()] = tokens[1].strip()
|
|
f.close()
|
|
return AlgNames.names[shortname] |