Пример #1
0
def bib_from_tmpl(bib_type, config, target):
    tmpl_basename = bib_type + '.bib'
    dest_path = os.path.join(bib_dir, target + '.bib')
    from_template(tmpl_basename, config, dest_path)
    command_line = 'recode -d u8..ltex ' + dest_path
    run = subprocess.Popen(command_line, shell=True, stdout=subprocess.PIPE)
    out, err = run.communicate()
Пример #2
0
def bib_from_tmpl(bib_type, config, target):
    tmpl_basename = bib_type + '.bib'
    dest_path = os.path.join(bib_dir, target + '.bib')
    from_template(tmpl_basename, config, dest_path)
    command_line = 'recode -d u8..ltex ' + dest_path
    run = subprocess.Popen(command_line, shell=True, stdout=subprocess.PIPE)
    out, err = run.communicate()
Пример #3
0
if __name__ == "__main__":

    if not len(sys.argv) == 2:
        print "Usage: build_template.py destination_name"
        sys.exit(-1)

    dest_fn = sys.argv[1]
    template_fn = os.path.join(template_dir, dest_fn+'.tmpl')

    if not os.path.exists(template_fn):
        print "Cannot find template."
        sys.exit(-1)

    config = get_config()
    from_template(dest_fn, config, dest_fn)

########NEW FILE########
__FILENAME__ = conf
import glob
import os

excludes = ['vanderwalt',]

work_dir      = os.path.dirname(__file__)
papers_dir    = os.path.join(work_dir,'../papers')
output_dir    = os.path.join(work_dir,'../output')
template_dir  = os.path.join(work_dir,'_templates')
static_dir    = os.path.join(work_dir,'_static')
css_file      = os.path.join(static_dir,'scipy-proc.css')
toc_list      = os.path.join(static_dir,'toc.txt')
Пример #4
0
if __name__ == "__main__":

    if not len(sys.argv) == 2:
        print "Usage: build_template.py destination_name"
        sys.exit(-1)

    dest_fn = sys.argv[1]
    template_fn = os.path.join(template_dir, dest_fn + '.tmpl')

    if not os.path.exists(template_fn):
        print "Cannot find template."
        sys.exit(-1)

    config = get_config()
    from_template(dest_fn, config, dest_fn)

########NEW FILE########
__FILENAME__ = conf
import glob
import os

excludes = [
    'vanderwalt',
]

work_dir = os.path.dirname(__file__)
papers_dir = os.path.join(work_dir, '../papers')
output_dir = os.path.join(work_dir, '../output')
template_dir = os.path.join(work_dir, '_templates')
static_dir = os.path.join(work_dir, '_static')