diff --git a/lib/filetools.py b/lib/filetools.py index aaa3c796..63ad9814 100644 --- a/lib/filetools.py +++ b/lib/filetools.py @@ -3,25 +3,8 @@ from __future__ import (absolute_import, division, print_function, unicode_literals) -import os - -from wlf.path import PurePath from wlf.pathtools import make_path_finder -ROOT = os.path.abspath(os.path.dirname(__file__)) module_path = make_path_finder(__file__) # pylint: disable = invalid-name plugin_folder_path = make_path_finder( # pylint: disable = invalid-name module_path()) - - -def path(*other): - """Get path relative to `ROOT`. - - Returns: - PurePath -- Absolute path under root. - """ - - ret = PurePath(ROOT) - for i in other: - ret /= i - return ret diff --git a/lib/pyblish_lite_nuke.py b/lib/pyblish_lite_nuke.py index f320d4ad..08f9c9a5 100644 --- a/lib/pyblish_lite_nuke.py +++ b/lib/pyblish_lite_nuke.py @@ -143,7 +143,7 @@ def __init__(self, parent=None): self.resize(*settings.WindowSize) self.setWindowTitle(settings.WindowTitle) - with open(e(filetools.path("pyblish_lite.css"))) as f: + with open(e(filetools.module_path("pyblish_lite.css"))) as f: css = u(f.read()) # Make relative paths absolute