Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
inovisao
pynovisao
Commits
bde2f717
Commit
bde2f717
authored
5 years ago
by
João Porto
Browse files
Options
Download
Email Patches
Plain Diff
correcao do erro caso a pasta XML nao esteja presente
parent
ba941a4c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
src/pynovisao.py
src/pynovisao.py
+4
-0
No files found.
src/pynovisao.py
View file @
bde2f717
...
...
@@ -1085,6 +1085,8 @@ class Act(object):
current_path
=
current_path
[
3
::
1
]
current_path
=
current_path
[
-
1
::
-
1
]
current_path
=
current_path
+
"data/XML"
if
(
not
os
.
path
.
exists
(
current_path
)):
os
.
makedirs
(
current_path
)
shutil
.
move
(
os
.
getcwd
()
+
"/{}.xml"
.
format
(
self
.
_image_name
),
current_path
+
"/{}.xml"
.
format
(
self
.
_image_name
))
def
run_xml_converter
(
self
):
...
...
@@ -1165,6 +1167,8 @@ class Act(object):
current_path
=
current_path
[
3
::
1
]
current_path
=
current_path
[
-
1
::
-
1
]
current_path
=
current_path
+
"data/XML"
if
(
not
os
.
path
.
exists
(
current_path
)):
os
.
makedirs
(
current_path
)
shutil
.
move
(
os
.
getcwd
()
+
"/{}.xml"
.
format
(
file
),
current_path
+
"/{}.xml"
.
format
(
file
))
print
(
"Processo finalizado"
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
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 comment