Commit e7e74c17 authored by Hippalectryon's avatar Hippalectryon

do not use dropbox by default

parent 92b4a505
......@@ -41,14 +41,14 @@ def make_path_available(path: str) -> None:
pathlib.Path(os.path.dirname(path)).mkdir(parents=True, exist_ok=True)
def save_data_dirname(data: Union[list, dict], output_dir: str, output_file: str, use_dropbox: bool = True) -> None:
def save_data_dirname(data: Union[list, dict], output_dir: str, output_file: str, use_dropbox: bool = False) -> None:
"""
Save the data in the directory output_dir, with the name output_file
"""
return save_data(data, os.path.join(output_dir, output_file), use_dropbox)
def save_data(data: Union[list, dict], output_file: str, use_dropbox: bool = True) -> None:
def save_data(data: Union[list, dict], output_file: str, use_dropbox: bool = False) -> None:
"""
Save the data in the path output_file
"""
......@@ -81,7 +81,7 @@ def save_data(data: Union[list, dict], output_file: str, use_dropbox: bool = Tru
cursor.offset = f.tell()
def load_data_dirname(input_dir: str, input_file: str, use_dropbox: bool = True) -> Union[list, dict]:
def load_data_dirname(input_dir: str, input_file: str, use_dropbox: bool = False) -> Union[list, dict]:
"""
Load the data in the path input_dir, with the name input_file
:return: the data as python types
......@@ -89,7 +89,7 @@ def load_data_dirname(input_dir: str, input_file: str, use_dropbox: bool = True)
return load_data(os.path.join(input_dir, input_file), use_dropbox)
def load_data(input_file: str, use_dropbox: bool = True) -> Union[list, dict]:
def load_data(input_file: str, use_dropbox: bool = False) -> Union[list, dict]:
"""
Load the data in the path input_file
:return: the data as python types
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment