Commit 874ff5c7 authored by Michael Murtaugh's avatar Michael Murtaugh
Browse files


parent e504d77e
#!/usr/bin/env python3
import sys, subprocess, os
def main (args):
datapath = os.path.join(os.path.dirname(os.path.realpath(__file__)), "data")
sconstruct_path = os.path.join(datapath, "templates", "")
template_path = os.path.join(datapath, "templates", "index-scons.html")
env = os.environ.copy()
env['scons-template'] = template_path
p =["scons", "-f", sconstruct_path], env=env)
def add_subparser (subparsers):
p = subparsers.add_parser('smake', help='Use scons to make directory indexes')
# p.add_argument("path")
if __name__ == "__main__":
from argparse import ArgumentParser
p = argparse.ArgumentParser("")
subparsers = p.add_subparsers(help="subcommands")
main(p.parse_args(args=(["smake"] + sys.argv[1:])))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment