Beispiel #1
0
def main():

    helper.greetings()

    try:
        with open(argv[1]) as f:
            data = yaml.load(f, Loader=yaml.FullLoader)
    except:
        print("Usage: python3 main.py repo-structure.yml")
        exit(1)

    print("Loading the YML file...")
    print("YML file structure: \n")
    pprint(data)

    print("\nMoving to test-env dir...")
    print("Removing files and folders [if any]...")
    print("Bringing side scripts...")

    os.chdir('test-env')
    os.system('rm -rf *')
    os.mkdir('images')
    os.system('cp ../side-scripts/* .')

    paths = []

    # Download and generate focus-areas markdowns from bash script
    for key, values in data['focus-areas'].items():
        subprocess.check_call(['./get_focus_areas.sh', key, values])

    del data['focus-areas']

    for key, values in data.items():

        if values['include-wg-flag']:

            print("\nCloning '{}' from '{}' branch\n".format(
                key, values['github-branch']))
            subprocess.check_call([
                'git', 'clone', '-b', values['github-branch'],
                values['github-link'], key
            ])

            # generate markdown for WG names
            paths = helper.generate_WG_md(values['wg-name'], 1, paths)

            paths = generate_paths(values, paths)

        else:
            print('[WARNING]: Flag off for {}, ignoring this WG'.format(key))

    helper.decrease_level(paths)
    generate_PDF(paths)
Beispiel #2
0
from helper import greetings
from get_input import getinput


if __name__ == '__main__':
	greetings(getinput())
Beispiel #3
0
from helper import greetings

if __name__ == "__main__":
    greetings("hello")
Beispiel #4
0
import helper

if __name__ == "__main__":
    helper.greetings('hello')
Beispiel #5
0
# Petar Duric
# pzd2fw
# Lab Section 101
# Due 9/28/2015

import helper

helper.greetings("hello")
Beispiel #6
0
from helper import greetings

greetings("git hub is soo coool@@@@@")
Beispiel #7
0
def main():
	msg = input("Enter a msg: ")
	helper.greetings(msg)
Beispiel #8
0
import helper as hp

if __name__ == '__main__':
    hp.greetings("Hello world!")
Beispiel #9
0
from helper import greetings

if __name__ == "__main__":
    greetings("What's good?")
Beispiel #10
0
from helper import greetings, welcome_place
from places import PLACES
from names import NAMES

greetings("hello")

for place in PLACES:
    welcome_place(place)

for name in NAMES:
    greetings(name)
Beispiel #11
0
def main():
    helper.greetings("Your mom is so fat, she's obese")
Beispiel #12
0
import helper

helper.greetings("goodbye")
Beispiel #13
0
import helper

helper.greetings("how are you?")
Beispiel #14
0
import helper

if __name__ == "__main__":
    helper.greetings("hello world")
Beispiel #15
0
def main():
    msg = input("Enter a msg: ")
    helper.greetings(msg)
Beispiel #16
0
import helper

if __name__ == "__main__":
    msg = input("Enter message: ")
    helper.greetings(msg)
Beispiel #17
0
import helper

if __name__ == "__main__":
    helper.greetings("hello")

Beispiel #18
0
def main():
    helper.greetings("It's LIIIIIIIITTTTTTT")
Beispiel #19
0
from helper import greetings

greetings("hello this is awesome")
Beispiel #20
0
from helper import greetings

greetings("hi my name is ahmed")
Beispiel #21
0
__author__ = 'Fran'

from helper import greetings

greetings("hello")
Beispiel #22
0
from helper import greetings

if __name__ == '__main__':
    greetings('hello')
Beispiel #23
0
def main():
    helper.greetings("go away")
Beispiel #24
0
import helper as hp

if __nam__ == '__main__':
	hp.greetings('lab activity 3')
Beispiel #25
0
from helper import greetings

if __name__ == '__main__':
    greetings('This is a new file')
Beispiel #26
0
import helper

helper.greetings("hello friends!")