Griffintaur / News-At-Command-Line

:newspaper: News at the command line
MIT License
47 stars 53 forks source link

conif.yml not found #49

Open dragona opened 5 years ago

dragona commented 5 years ago

This line will create an IOError if the script is run from the Main.py but not installed.

with open("config.yml", 'r') as ymlfile:
IOError: [Errno 2] No such file or directory: 'config.yml'

I suggest to first check the current dir, then load the config.yml file accordingly.