Skip to content

Commit

Permalink
Fix config file
Browse files Browse the repository at this point in the history
Make function trigger
  • Loading branch information
thinkjin99 committed Jul 28, 2024
1 parent 0bac8d8 commit eac7600
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions config.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import json
import os
from pathlib import Path
import typer

APP_NAME = "obs3dian"
SETUP_FILE_NAME = "config.json"
APP_DIR_PATH = typer.get_app_dir(APP_NAME)
APP_DIR_PATH = "/home/runner/.config/obs3dian"


def save_config(json_data: dict):
def save_config():
app_dir_path = Path(APP_DIR_PATH) # create app setting folder
aws_access_key_id = os.getenv("AWS_ACCESS_KEY_ID")
aws_secret_access_key = os.getenv("AWS_SECRET_ACCESS_KEY")
Expand All @@ -29,3 +28,7 @@ def save_config(json_data: dict):
json.dump(json_data, f) # write config.json

print(f"save config file in {config_path}")


if __name__ == "__main__":
save_config()

0 comments on commit eac7600

Please sign in to comment.