-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
41 lines (31 loc) · 889 Bytes
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
""" Set up input and output directories for CLI. """
# config.py
import os
# Default input and output directories
DEFAULT_INPUT_DIR = os.path.join(os.path.dirname(__file__), "input")
DEFAULT_OUTPUT_DIR = os.path.join(os.path.dirname(__file__), "output")
# Initialize global variables
INPUT_DIR = DEFAULT_INPUT_DIR
OUTPUT_DIR = DEFAULT_OUTPUT_DIR
# Function to set input directory
def set_input_directory(input_dir):
"""
Set the input directory.
Parameters:
input_dir (str): The path to the input directory.
Returns:
None
"""
global INPUT_DIR
INPUT_DIR = input_dir
# Function to set output directory
def set_output_directory(output_dir):
"""
Set the output directory.
Parameters:
output_dir (str): The path to the output directory.
Returns:
None
"""
global OUTPUT_DIR
OUTPUT_DIR = output_dir