Exemple #1
0
    def run(self):
        section = self.parser.getArgs()[0]
        option = self.parser.getArgs()[1]

        print_("Foam-Version: ", foamVersionString())
        print_("Section:      ", section)
        print_("Option:       ", option)
        print_("Value:        ", end="")
        try:
            print_(config().get(section, option))
        except ConfigParser.NoSectionError:
            print_("<section not found>")
        except ConfigParser.NoOptionError:
            print_("<option not found>")
    def run(self):
        section=self.parser.getArgs()[0]
        option=self.parser.getArgs()[1]

        print_("Foam-Version: ",foamVersionString())
        print_("Section:      ",section)
        print_("Option:       ",option)
        print_("Value:        ",end="")
        try:
            print_(config().get(section,option))
        except ConfigParser.NoSectionError:
            print_("<section not found>")
        except ConfigParser.NoOptionError:
            print_("<option not found>")
Exemple #3
0
    def run(self):
        section=self.parser.getArgs()[0]
        option=self.parser.getArgs()[1]

        print "Foam-Version: ",foamVersionString()
        print "Section:      ",section
        print "Option:       ",option
        print "Value:        ",
        try:
            print config().get(section,option)
        except ConfigParser.NoSectionError:
            print "<section not found>"
        except ConfigParser.NoOptionError:
            print "<option not found>"
Exemple #4
0
def foamVersionString():
    from PyFoam.FoamInformation import foamVersionString
    return foamVersionString()
Exemple #5
0
def foamVersionString():
    from PyFoam.FoamInformation import foamVersionString
    return foamVersionString()