Permalink
Browse files

Fun discovery: Sublime on windows still requires posix path separators

  • Loading branch information...
1 parent 6d6348c commit 83c70dfaa4367841c10de847ec611b91b9708dc3 @kemayo kemayo committed Oct 8, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 git.py
View
3 git.py
@@ -9,7 +9,8 @@
# when sublime loads a plugin it's cd'd into the plugin directory. Thus
# __file__ is useless for my purposes. What I want is "Packages/Git", but
# allowing for the possibility that someone has renamed the file.
-PLUGIN_DIRECTORY = os.getcwd().replace(os.path.normpath(os.path.join(os.getcwd(), '..', '..')) + os.path.sep, '')
+# Fun discovery: Sublime on windows still requires posix path separators.
+PLUGIN_DIRECTORY = os.getcwd().replace(os.path.normpath(os.path.join(os.getcwd(), '..', '..')) + os.path.sep, '').replace(os.path.sep, '/')
def main_thread(callback, *args, **kwargs):

0 comments on commit 83c70df

Please sign in to comment.