diff --git a/__init__.py b/__init__.py index 0a4027a..e69de29 100644 --- a/__init__.py +++ b/__init__.py @@ -1,8 +0,0 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- - -import os -import sys - -sd = os.path.abspath(os.path.dirname(__file__)) -sys.path.append(sd) diff --git a/core/__init__.py b/core/__init__.py index 0a4027a..e69de29 100644 --- a/core/__init__.py +++ b/core/__init__.py @@ -1,8 +0,0 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- - -import os -import sys - -sd = os.path.abspath(os.path.dirname(__file__)) -sys.path.append(sd) diff --git a/sample.py b/sample.py index 4b65cc9..bbdd488 100644 --- a/sample.py +++ b/sample.py @@ -1,8 +1,14 @@ #!/usr/bin/python # -*- coding: utf-8 -*- +import sys import os -os.chdir(os.path.dirname(os.path.abspath(__file__))) +import pathlib + + +root_path = pathlib.Path(os.path.abspath(__file__)).parent +sys.path.append(str(root_path)) + from core.drucker_worker_client import DruckerWorkerClient