genzj / pybingwallpaper

Download wallpaper from bing.com
MIT License
547 stars 103 forks source link

can't read settings.conf when run out of installation dir #16

Closed genzj closed 10 years ago

genzj commented 10 years ago
$ py -3 src/main.py
Traceback (most recent call last):
  File "src/main.py", line 534, in <module>
    run_config = load_config(configdb)
  File "src/main.py", line 481, in load_config
    conf_config = config.from_file(configdb, run_config.config_file)
  File "e:\Work\Python\pybingwallpaper\src\config.py", line 341, in from_file
    with open(filename, 'r', encoding='utf-8') as inf:
FileNotFoundError: [Errno 2] No such file or directory: 'settings.conf'

$ pwd
/E/Work/Python/pybingwallpaper