From e86d4047e2e4737a15683c16f3954044794c78c0 Mon Sep 17 00:00:00 2001 From: idleberg Date: Wed, 22 Jun 2016 12:40:11 +0200 Subject: [PATCH] delete file --- chmod.py | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 chmod.py diff --git a/chmod.py b/chmod.py deleted file mode 100644 index 2fc3018..0000000 --- a/chmod.py +++ /dev/null @@ -1,26 +0,0 @@ -# https://gist.github.com/idleberg/03bc3766c760bb4b81e3 - -import os, stat, sublime, sublime_plugin - -# Package name, must match directory name -package = 'makensis' - -# Array of files, relative to package directory -files = [ - 'Support/makensis.sh' -] - -def plugin_loaded(): - from os.path import join - from package_control import events - - if (events.install(package) or events.post_upgrade(package)) and os.name is 'posix' or 'mac': - for file in files: - - # Concat full path - f = join(sublime.packages_path(), package + '/' + file) - - # Change permissions, if file exists - if os.path.isfile(f): - st = os.stat(f) - os.chmod(f, st.st_mode | stat.S_IEXEC)