Skip to content

Instantly share code, notes, and snippets.

@hexaclock
hexaclock / wcbundler.py
Last active February 20, 2018 02:39
Web Component bundler for Python
import os
import sys
import hashlib
from bs4 import BeautifulSoup
ROOT = os.getcwd()
def get_abs_path(href_path, cur_dir):
parent_dir = ROOT if href_path[0] == '/' else cur_dir
href = os.path.join(parent_dir, href_path.strip('/'))

Keybase proof

I hereby claim:

  • I am hexaclock on github.
  • I am dvinak (https://keybase.io/dvinak) on keybase.
  • I have a public key whose fingerprint is 2ECC 7A94 F72D 6D01 3802 F176 35EA 6877 FBFE A0B6

To claim this, I am signing this object: