Skip to content

Commit 84eee2e

Browse files
committed
Extract the proper directory to combine with the relative path of the urlist diff master, instead of using getcwd() .
- Legacy-Id: 6618
1 parent 43c1b09 commit 84eee2e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ietf/utils/test_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,8 @@ def doDiff(self, tuple, response):
207207
if "skipdiff" in codes:
208208
return
209209
if master:
210-
cwd = os.getcwd()
211-
master = os.path.join(cwd, master)
210+
root_dir = os.path.dirname(os.path.dirname(os.path.abspath(sys.modules["__main__"].__file__)))
211+
master = os.path.join(root_dir, master)
212212
mfile = open(master)
213213
refhtml = mfile.read()
214214
mfile.close()

0 commit comments

Comments
 (0)