diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-12-18 23:34:09 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-12-18 23:34:09 -0300 |
commit | 49d23940f85696162b89b00741be09c95197b94e (patch) | |
tree | eda07c25cf002c80906b8d74c8c6a392f25ebdca /comp.py | |
parent | 0933a22a34d26dbe64e20e84e4700807ba7be3a9 (diff) | |
download | updates-49d23940f85696162b89b00741be09c95197b94e.tar.gz updates-49d23940f85696162b89b00741be09c95197b94e.tar.bz2 updates-49d23940f85696162b89b00741be09c95197b94e.tar.xz updates-49d23940f85696162b89b00741be09c95197b94e.zip |
Ignore XCF and PSD files left in the tree.
Diffstat (limited to 'comp.py')
-rwxr-xr-x | comp.py | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -18,12 +18,11 @@ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ######################################################################################## # This builds live/ folder for Update Server -import subprocess, json, sys, os, traceback +import subprocess, os, traceback PATH="/var/www/html/assets" # Delete previous deployment subprocess.call("rm --recursive %s/*" % PATH, shell=True) -f=open("resources.json", "w") rc=[] @@ -46,17 +45,14 @@ for path, subdir, files in os.walk("raw/"): if EXT in ["png", "jpg", "jpeg"]: subprocess.call("convert %s %s/%s" % (fn, PATH, NAME), shell=True) EXT="webp" + elif EXT in ["xcf", "psd"]: + pass else: subprocess.call("cp %s %s/%s.%s" % (fn, PATH, NAME, EXT), shell=True) - rc.append([NAME, EXT]) except: traceback.print_exc() pass -# Save new summary -json.dump(rc, f) -f.close() - # Create blank index page to disable dir listing subprocess.call("touch %s/index.html" % PATH, shell=True) |