Tiny refactoring
This commit is contained in:
parent
121c3f800d
commit
fd3d3d11d1
@ -1,6 +1,5 @@
|
||||
import os
|
||||
import re
|
||||
import socket
|
||||
|
||||
# For reference see http://netbox.readthedocs.io/en/latest/configuration/mandatory-settings/
|
||||
# Based on https://github.com/netbox-community/netbox/blob/develop/netbox/netbox/configuration.example.py
|
||||
|
@ -9,7 +9,7 @@ this_dir = dirname(abspath(__file__))
|
||||
def filename(f):
|
||||
return f.name
|
||||
|
||||
with scandir(dirname(abspath(__file__))) as it:
|
||||
with scandir(this_dir) as it:
|
||||
for f in sorted(it, key = filename):
|
||||
if not f.is_file():
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user