mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-27 12:40:35 +00:00
remverting back a version for better fix (#2717)
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
# IMPORTATION STANDARD
|
||||
import os
|
||||
import shutil
|
||||
from typing import List
|
||||
|
||||
from openbb_terminal.core.config.paths import (
|
||||
@@ -14,7 +12,6 @@ from openbb_terminal.core.config.paths import (
|
||||
PRESETS_DIRECTORY,
|
||||
ROUTINES_DIRECTORY,
|
||||
DATA_SOURCES_DEFAULT_FILE,
|
||||
REPOSITORY_DIRECTORY,
|
||||
)
|
||||
|
||||
# pylint: disable=W0603
|
||||
@@ -39,13 +36,7 @@ def create_files(list_files: List):
|
||||
for filename in list_files:
|
||||
if not filename.is_file():
|
||||
with open(str(filename), "w"):
|
||||
if filename == DATA_SOURCES_DEFAULT_FILE:
|
||||
filesize = os.path.getsize(filename)
|
||||
if filesize == 0:
|
||||
shutil.copyfile(
|
||||
REPOSITORY_DIRECTORY / "data_sources_default.json",
|
||||
filename,
|
||||
)
|
||||
pass
|
||||
|
||||
|
||||
dirs_list = [
|
||||
|
||||
Reference in New Issue
Block a user