We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d8684f7 + 091017d commit 5ba0b9aCopy full SHA for 5ba0b9a
3 files changed
__init__.py
@@ -1,8 +0,0 @@
1
-#!/usr/bin/python
2
-# -*- coding: utf-8 -*-
3
-
4
-import os
5
-import sys
6
7
-sd = os.path.abspath(os.path.dirname(__file__))
8
-sys.path.append(sd)
core/__init__.py
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
+
9
+root_path = pathlib.Path(os.path.abspath(__file__)).parent
10
+sys.path.append(str(root_path))
11
12
13
from core.drucker_worker_client import DruckerWorkerClient
14
0 commit comments