Skip to content
This repository has been archived by the owner on Mar 20, 2019. It is now read-only.

Must be run within working directory #1

Closed
vrillusions opened this issue Apr 9, 2011 · 0 comments
Closed

Must be run within working directory #1

vrillusions opened this issue Apr 9, 2011 · 0 comments
Labels

Comments

@vrillusions
Copy link
Owner

If called from anywhere else it can't find the config file and complains:

cd ~
projects/simplenote-cli/sn.py
ERROR, UNEXPECTED EXCEPTION
No section: 'simplenote'
Traceback (most recent call last):
  File "projects/simplenote-cli/sn.py", line 123, in <module>
    main()
  File "projects/simplenote-cli/sn.py", line 61, in main
    email = config.get('simplenote', 'email')
  File "/usr/lib/python2.6/ConfigParser.py", line 531, in get
    raise NoSectionError(section)
NoSectionError: No section: 'simplenote'

Just need to make the default be the full path to the config file.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant