From 4cdd210bb27cd1c271e69c8dfd46585f0c232ef9 Mon Sep 17 00:00:00 2001 From: Dannon Baker Date: Fri, 15 Jun 2018 14:49:46 -0400 Subject: [PATCH] Use os.pardir instead of ../. Thanks @nsoranzo --- scripts/plugin_staging.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/plugin_staging.py b/scripts/plugin_staging.py index 3872f4a122d..1c21cc13614 100644 --- a/scripts/plugin_staging.py +++ b/scripts/plugin_staging.py @@ -2,13 +2,13 @@ import glob import os import shutil -GXY_ROOT = os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(__file__)), '../')) +GXY_ROOT = os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(__file__)), os.pardir)) def link_up_static(f): src = os.path.join(GXY_ROOT, 'config/plugins', f) dest = os.path.join(GXY_ROOT, 'static/plugins', f) - dest_parent = os.path.abspath(os.path.join(dest, "../")) + dest_parent = os.path.abspath(os.path.join(dest, os.pardir)) if os.path.exists(dest): # We have to clear out the old staged or linked static to relink. if os.path.islink(dest):