Hi All,
I'm collating a bunch of my utility scripts into one, creating a
single script to which I will symbolic link multiple times. This way
I only have to write code for error checking, output-formatting etc a
single time.
So, I have
~/bin/foo -
Simon Mullis wrote:
Hi All,
I'm collating a bunch of my utility scripts into one, creating a
single script to which I will symbolic link multiple times. This way
I only have to write code for error checking, output-formatting etc a
single time.
So, I have
~/bin/foo -
Simon Mullis wrote:
def main():
stats_obj = Statistic()
name = re.sub([^A-Za-z], , sys.argv[0])
method = getattr(stats_obj, name, None)
if callable(method):
stats_obj.name() # HERE
else:
print nope, not sure what you're
May I be the first to say Doh!
Problem solved, many thanks to both Carsten and Diez!
SM
2009/11/4 Carsten Haese carsten.ha...@gmail.com:
Simon Mullis wrote:
def main():
stats_obj = Statistic()
name = re.sub([^A-Za-z], , sys.argv[0])
method = getattr(stats_obj, name, None)