add basic vars info
This commit is contained in:
parent
7be0248dcc
commit
e80c9bda6e
@ -12,6 +12,14 @@
|
|||||||
# #
|
# #
|
||||||
##################################
|
##################################
|
||||||
|
|
||||||
|
__author__ = "Shr-Lnm"
|
||||||
|
__copyright__ = "Copyright 2018-2022"
|
||||||
|
__credits__ = []
|
||||||
|
# __license__ = "GNU" # Unknown licence!
|
||||||
|
__version__ = "3.0.0" # python3 maybe ?
|
||||||
|
__maintainer__ = "Shr-Lnm"
|
||||||
|
__email__ = "mshkn@inbox.ru"
|
||||||
|
__status__ = "Beta"
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
@ -36,7 +44,6 @@ for f in listdir('.'):
|
|||||||
sys.path.append(os.path.join(currenPath, f))
|
sys.path.append(os.path.join(currenPath, f))
|
||||||
sys.path.append(os.path.join(currenPath, f, "serial"))
|
sys.path.append(os.path.join(currenPath, f, "serial"))
|
||||||
|
|
||||||
|
|
||||||
if osname == 'nt':
|
if osname == 'nt':
|
||||||
import pip
|
import pip
|
||||||
|
|
||||||
@ -81,6 +88,7 @@ if osname == 'android':
|
|||||||
print("Error while using jnius")
|
print("Error while using jnius")
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
|
|
||||||
def update_from_gitlab():
|
def update_from_gitlab():
|
||||||
try:
|
try:
|
||||||
import os
|
import os
|
||||||
@ -141,6 +149,7 @@ def update_from_gitlab():
|
|||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
|
||||||
def getPathList():
|
def getPathList():
|
||||||
return ['./' + f for f in listdir('.') if isdir('./' + f) \
|
return ['./' + f for f in listdir('.') if isdir('./' + f) \
|
||||||
and f.lower().startswith('pyren') \
|
and f.lower().startswith('pyren') \
|
||||||
@ -153,6 +162,7 @@ def getLangList():
|
|||||||
# return [f[10:-4] for f in listdir('./Location') if f.lower().startswith('diagoncan_')]
|
# return [f[10:-4] for f in listdir('./Location') if f.lower().startswith('diagoncan_')]
|
||||||
return ['AL', 'CNT', 'CO', 'CR', 'CZ', 'DK', 'EL', 'FI', 'FR', 'GB', 'HG', 'IT', 'JP', 'NG', 'NL', 'PL', 'PO', 'RO', 'RU', 'SD', 'SL', 'SP', 'TR']
|
return ['AL', 'CNT', 'CO', 'CR', 'CZ', 'DK', 'EL', 'FI', 'FR', 'GB', 'HG', 'IT', 'JP', 'NG', 'NL', 'PL', 'PO', 'RO', 'RU', 'SD', 'SL', 'SP', 'TR']
|
||||||
|
|
||||||
|
|
||||||
def getPortList():
|
def getPortList():
|
||||||
ret = []
|
ret = []
|
||||||
if os.name != 'android':
|
if os.name != 'android':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user