From fd3d3d11d1f00dc28bc136afa1cccfd94419f4fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20M=C3=A4der?= Date: Sat, 17 Oct 2020 23:09:26 +0200 Subject: [PATCH] Tiny refactoring --- configuration/configuration.py | 1 - startup_scripts/__main__.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/configuration/configuration.py b/configuration/configuration.py index f7c8ed5..7230927 100644 --- a/configuration/configuration.py +++ b/configuration/configuration.py @@ -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 diff --git a/startup_scripts/__main__.py b/startup_scripts/__main__.py index c41bba6..dc4cdc9 100644 --- a/startup_scripts/__main__.py +++ b/startup_scripts/__main__.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