Sublime Forum

Load custom libraries

#1

is it possible to load whatever python libraries I want inside a plugin? I’m just playing around with a hack for fun and want to use some libraries I installed via “easy_install”. For example, in the terminal I ran this:

[code]$ easy_install pyglet

$ python

import pyglet[/code]
and that works fine. What should I do to access that library inside Sublime Text? Since it’s just a hack, I really don’t mind how ugly or unmaintainable it is…

0 Likes

#2

Yep. You can import anything. The only real issue is if you want to package it to people who may not have the dependencies install.

0 Likes

#3

look at https://github.com/viisual/ASCII-Decorator

0 Likes