Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Use full PLUGIN_DIRECTORY path #232

Closed
wants to merge 1 commit into from

1 participant

@joedynamite

I symlink my Sublime Packages from a directory outside of the normal
location. Not having the full path was causing issues when changing
to syntaxes included in this plugin. Other people might symlink as
well.

@joedynamite

Other updates seem to have fixed the problem I was originally having.

@joedynamite joedynamite closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 23, 2013
  1. @joedynamite
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  git.py
View
2  git.py
@@ -11,7 +11,7 @@
# __file__ is useless for my purposes. What I want is "Packages/Git", but
# allowing for the possibility that someone has renamed the file.
# 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, '/')
+PLUGIN_DIRECTORY = os.getcwd().replace(os.path.sep, '/')
git_root_cache = {}
Something went wrong with that request. Please try again.