Ensure order of imported modules
This commit is contained in:
parent
f172e82f10
commit
e89c19ee60
1 changed files with 1 additions and 1 deletions
|
|
@ -2,7 +2,7 @@ import os.path
|
|||
|
||||
def _init(root=__name__, file=__file__):
|
||||
base = os.path.dirname(file)
|
||||
for fname in os.listdir(base):
|
||||
for fname in sorted(os.listdir(base)):
|
||||
is_python_script = fname.endswith('.py') or fname.endswith('.pyc')
|
||||
is_init_script = fname.startswith('__init__')
|
||||
is_directory = os.path.isdir(os.path.join(base, fname))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue