def is_compressed_package(): plugin_dir = path.dirname(__file__) return not plugin_dir.startswith(sublime.packages_path())