Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
Nuovo sito
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
16
Issues
16
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gruppo Web
Nuovo sito
Commits
13123a55
Commit
13123a55
authored
Nov 30, 2023
by
shadMod
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added copytree if path news not exists
parent
e9b6c1b3
Pipeline
#348
passed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
uitwww/__init__.py
uitwww/__init__.py
+3
-1
No files found.
uitwww/__init__.py
View file @
13123a55
...
@@ -106,7 +106,9 @@ def init_data_directory(data_path: str):
...
@@ -106,7 +106,9 @@ def init_data_directory(data_path: str):
if
os
.
path
.
exists
(
NEWS_PATH
):
if
os
.
path
.
exists
(
NEWS_PATH
):
shutil
.
rmtree
(
NEWS_PATH
)
shutil
.
rmtree
(
NEWS_PATH
)
shutil
.
copytree
(
ROOT_NEWS
,
NEWS_PATH
)
shutil
.
copytree
(
ROOT_NEWS
,
NEWS_PATH
)
except
OSError
:
else
:
shutil
.
copytree
(
ROOT_NEWS
,
NEWS_PATH
)
except
OSError
as
ex
:
shutil
.
copy
(
ROOT_NEWS
,
NEWS_PATH
)
shutil
.
copy
(
ROOT_NEWS
,
NEWS_PATH
)
except
Exception
as
ex
:
except
Exception
as
ex
:
print
(
ex
)
print
(
ex
)
...
...
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