Hi all
I'm creating a lot of tools using Python and version control is getting quite out of... control.
So I'm starting to create a folder infrastructure inside PYPROGS to manage the different tools and keep their basecodes separated.
My problem/question is:
How can I manage the subfolders in PYPROGS?
For example, I have some files organised like this:
-U2DBLiveDMS
|-u2dblive.py
|-u2dblive_common.py
-aws_boto3_context_manager.py
-aws_file_delete.py
-excel_utils.py
I can check my files using uopy:
with uopy.connect(**config):
cmd = uopy.Command("SELECT PYPROGS")
cmd.run()
select_list = uopy.List()
self.__lista_ficheros = select_list.read_list()
rgx_cksum = re.compile(r'[Cc]ksum\\s+=\\s+([0-9]+)\\s+')
for f in self.__lista_ficheros:
if f.endswith('.py'):
chk = uopy.Command(f'CHECK.SUM PYPROGS {f}')
chk.run()
m = rgx_cksum.search(chk.response)
if m:
self.__checksums.append(int(m.group(1)))
else:
cmd_chk = uopy.Command('CHECK.SUM PYPROGS excel_utils.py')
cmd_chk.run()
cmd_chk.response
'\\r\\nByte statistics for PYPROGS:\\r\\nTotal = 8345 Average = 8345 Items = 1 Cksum = -1403193208 Bits = 28293\\r\\n'
But I can't do this with the files inside U2DBLiveDMS
Is there a way to handle this?
------------------------------
Héctor Cortiguera
Quiter Servicios Informaticos SL
------------------------------