#pluginpath = "."
pluginfiles = [fname[:-3] for fname in os.listdir(pluginpath) if fname.endswith(".py") and not fname.startswith(".") and not fname.endswith("~")]
- for fname in pluginfiles:
+ for fname in sorted(pluginfiles):
oldpath = sys.path
try:
sys.path.append(os.path.abspath(pluginpath))