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
b1eee15e
Commit
b1eee15e
authored
Nov 04, 2023
by
shadMod
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replaced UITWWW_DIR with data_path in Downloads().__init__
replaced BASE_DIR with data_path in main.init
parent
7a31eb04
Pipeline
#337
passed with stage
in 0 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
uitwww/__init__.py
uitwww/__init__.py
+1
-1
uitwww/download.py
uitwww/download.py
+2
-2
uitwww/main.py
uitwww/main.py
+1
-1
No files found.
uitwww/__init__.py
View file @
b1eee15e
...
...
@@ -80,7 +80,7 @@ def create_app(data_path, debug=False):
return
app
def
init_data_directory
(
data_path
):
def
init_data_directory
(
data_path
:
str
):
"""Initialize the data directory"""
src_directory
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
...
...
uitwww/download.py
View file @
b1eee15e
...
...
@@ -30,7 +30,7 @@ from . import cache
from
.
import
launchpad
from
.constants
import
UITWWW_DIR
CONFIG_FILE
=
"/../data/
downloads.toml"
DOWNLOAD_FILE
=
"
downloads.toml"
CACHE_FILE
=
"download-cache.json"
CACHE_FILE_VERSION
=
1
...
...
@@ -43,7 +43,7 @@ class Downloads:
self
.
_sha256sums
=
None
# Load the configuration
path
=
UITWWW_DIR
+
CONFIG_FILE
path
=
os
.
path
.
join
(
data_path
,
DOWNLOAD_FILE
)
self
.
config
=
toml
.
load
(
path
,
_dict
=
collections
.
OrderedDict
,
)
...
...
uitwww/main.py
View file @
b1eee15e
...
...
@@ -88,7 +88,7 @@ def init(data, debug):
uitwww
.
init_data_directory
(
data_path
)
print
(
"Created data directory:"
,
data
)
compiler
=
CompileVersion
(
path_out
=
BASE_DIR
+
"/data
/downloads.toml"
,
path_out
=
data_path
+
"
/downloads.toml"
,
constants
=
UITWWW_DIR
+
"/src/download/assets/constants.json"
,
)
compiler
.
compile_download
()
...
...
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