danielmagnussons / orgmode

orgmode is for keeping notes, maintaining TODO lists, planning projects, and authoring documents with a fast and effective plain-text system.
MIT License
753 stars 70 forks source link

Fix path to orgmode-store.bin.gz #41

Closed jiffyclub closed 9 years ago

jiffyclub commented 9 years ago

sublime.packages_path() returns a directory, there's no need to use dirname on it:

>>> sublime.packages_path()
'/Users/jiffyclub/Library/Application Support/Sublime Text 3/Packages'

os.path.join is a better way to construct system paths, abspath ensures we have an absolute path.

I think this should fix #38, though I'm not totally sure how to trigger the error in the first place. Note that I'm using a Mac so I don't know if this could break other systems.

danielmagnussons commented 9 years ago

Nice, keep it up! =)