pygame-pypy /

# -*- encoding: utf-8 -*-

# module

"""A module for reading the information common to all Windows setups.

Exports read and get_definitions.

path = ''

class Definition(object):
    def __init__(self, name, value): = name
        self.value = value

def read():
    """Return the contents of the Windows Common Setup as a string"""

    setup_in = open(path)

def get_definitions():
    """Return a list of definitions in the Windows Common Setup

    Each macro definition object has a 'name' and 'value' attribute.
    import re
    setup_in = open(path)
        deps = []
        match = re.compile(r'([a-zA-Z0-9_]+) += +(.+)$').match
        for line in setup_in:
            m = match(line)
            if m is not None:
        return deps

__all__= ['read', 'get_dependencies']
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.