Browse files

Fixing self.path to work in windows

  • Loading branch information...
1 parent 292d997 commit 04fc5c112ccd0c6a375b5a3cfa8cc986b123ca4a @nagaozen committed Jun 6, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 autocomplete/settings.py
View
3 autocomplete/settings.py
@@ -15,6 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+import gedit
import json
import os.path
@@ -24,7 +25,7 @@ def __init__(self, caller):
self._caller = caller
self.source = "MIXED"
- self.path = "~/.gnome2/gedit/plugins/autocomplete/"
+ self.path = gedit.Plugin.get_data_dir(caller._plugin) + "/"
self._persistenceService = PersistenceService(self)

0 comments on commit 04fc5c1

Please sign in to comment.