diff --git a/netbox/extras/forms/scripts.py b/netbox/extras/forms/scripts.py index 55f5f3b19..6843347d8 100644 --- a/netbox/extras/forms/scripts.py +++ b/netbox/extras/forms/scripts.py @@ -75,9 +75,9 @@ class ScriptFileForm(ManagedFileForm): filename = self.cleaned_data['upload_file'].name if isinstance(storage, ScriptFileSystemStorage): - full_path = filename - else: full_path = os.path.join(settings.SCRIPTS_ROOT, filename) + else: + full_path = filename self.instance.file_path = full_path data = self.cleaned_data['upload_file']