--- a/eric5_api.py Mon Oct 14 20:08:19 2013 +0200 +++ b/eric5_api.py Tue Oct 15 18:29:32 2013 +0200 @@ -107,7 +107,8 @@ import getopt try: - opts, args = getopt.getopt(sys.argv[1:], "b:e:hl:o:pRrt:Vx:", + opts, args = getopt.getopt( + sys.argv[1:], "b:e:hl:o:pRrt:Vx:", ["base=", "eol=", "exclude=", "exclude-file=", "extension=", "help", "language=", "output=", "private", "recursive", "version", ]) @@ -195,8 +196,8 @@ for arg in args: if os.path.isdir(arg): - if os.path.exists(os.path.join(arg, - Utilities.joinext("__init__", ".py"))): + if os.path.exists(os.path.join( + arg, Utilities.joinext("__init__", ".py"))): basename = os.path.dirname(arg) if arg == '.': sys.stderr.write("The directory '.' is a package.\n") @@ -250,7 +251,8 @@ continue try: - module = Utilities.ModuleParser.readModule(file, + module = Utilities.ModuleParser.readModule( + file, basename=basename, inpackage=inpackage) apiGenerator = APIGenerator(module) api = apiGenerator.genAPI(True, basePackage,