CarlosOliveira1988 / Investment_Portfolio_Analysis

This repository is useful to perform some financial analysis in Investment Portfolio
4 stars 0 forks source link

Save the Extrato spreadsheet directory in a configuration file #71

Closed CarlosOliveira1988 closed 2 years ago

CarlosOliveira1988 commented 2 years ago

Is your feature request related to a problem? Please describe.

Since each user usually has just one Extrato spreadsheet, this feature will be helpful to reduce the time to open the wished spreadsheet

Describe the solution you'd like

Use the "python-dotenv" library to manage the .env files, handling the "EXTRATO_PATH" parameter

Describe alternatives you've considered

  1. If the ".env" file does not exist, then create one ".env" file with the default empty spreadsheet
  2. If the ".env" file exist but the "EXTRATO_PATH" file does not exist, then open the default empty spreadsheet
  3. When closing the application by normal operation (using the "X" button, for example), then save the current file in the ".env" file

Additional context

N/A

CarlosOliveira1988 commented 2 years ago

Feature created in the "usage-improvements" branch. Please, check the results.