Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Luciano Barletta
/
Pruebas-RTO
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit 8443652b
authored
2023-10-03 10:03:15 -0300
by
Juan Pablo dure
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Tiempo dinamico en la espera descarga
1 parent
37b8eee2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
fosadiaria.py
fosadiaria.py
View file @
8443652
...
...
@@ -55,15 +55,27 @@ class FosaDiaria():
def
BuscarExcelDescargado
(
self
,
tmp
=
"/dev/shm/tmpscdecas.txt"
):
rta
=
""
sleep
(
2
)
os
.
system
(
f
"""ls {self.CarpetaDescarga} -ls | grep xls 2> {tmp}"""
)
test
=
True
n
=
0
while
test
:
arc
=
self
.
_BuscarExcelDescargado
(
tmp
)
n
=
n
+
1
if
not
arc
==
False
:
test
=
False
if
n
>
20
:
return
" "
return
(
arc
)
def
_BuscarExcelDescargado
(
self
,
tmp
=
"/dev/shm/tmpscdecas.txt"
):
rta
=
False
sleep
(
0.5
)
os
.
system
(
f
"""ls {self.CarpetaDescarga} -ls | grep xls | grep {self.cabezaera}2> {tmp}"""
)
file1
=
open
(
tmp
,
'r'
)
Lines
=
file1
.
readlines
()
for
line
in
Lines
:
print
(
line
)
der
=
line
.
split
(
" "
)[
-
1
]
archivo
=
f
"""{der}"""
archivo
=
f
"""{
self.CarpetaDescarga}{
der}"""
print
(
archivo
)
rta
=
archivo
file1
.
close
()
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment