Skip to content

Conversation

@LanternNassi
Copy link

This pull request is meant to enable a user create and use a config file in another location of covienience . The default config file location is used if there is no config path specified for the command

Trello ticket
https://trello.com/c/XSh7tm8X/1825-make-config-file-path-dynamic

Copy link
Collaborator

@Mubangizi Mubangizi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey @LanternNassi, great work, just a little changes



dotenv_path = join(dirname(__file__), '.env')
load_dotenv(dotenv_path)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you remove this? @LanternNassi



def write_config(key, value, should_update=True):
def write_config(key, value, should_update=True , crane_dir = get_base_dir()):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please revert this, we talked about removing crane_dir key



def read_config():
def read_config(crane_config = get_base_dir()):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove crane_dir variable


CONFIG_FILE = 'config'

dotenv_path = join(dirname(__file__), '.env')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn't be here, rather in the initial file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants