Closed FichteFoll closed 10 years ago
Thank you! I will commit this changes very soon!
I forgot that you have to create the path first if it doesn't exist. Likely not going to happen because the User package is pretty commen, but whatever.
if not os.path.exists(user_path):
os.makedirs(user_path)
Edit: You should also add "Python": {"lang": "python", "zeal_lang": "python"}
to the default settings.
Your package does not work when it was installed via Package Control (or rather: installed using a
sublime-package
file). Since package on ST3 can be read from within.sublime-package
files – and this is what ST prefers, see https://www.sublimetext.com/docs/3/packages.html – the file you want to copy does not exist on the target machine.There is a feature in Package Control that tells it to extract the package by creating a
.no-sublime-package
file in the package root, but there is a better method for this. ST3 provides asublime.load_resource()
function that can open a package file's contents regardless of package position. See also https://github.com/Monnoroch/ColorHighlighter/pull/36#issuecomment-34321128.Problematic source:
Traceback:
Solution: