Skip to content

Commit 76e25bb

Browse files
committed
Use os.path.join where possible
1 parent d822759 commit 76e25bb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build/release_archiver.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ def __init__(self, product, version):
1010
self.prefix = "operate"
1111
else:
1212
self.prefix = "integrate"
13-
self.new_directory = f"content/{self.prefix}/{self.product}/{self.new_version}"
14-
self.latest = f"content/{self.prefix}/{self.product}"
13+
self.new_directory = os.path.join("content",self.prefix,self.product,self.new_version)
14+
self.latest = os.path.join("content",self.prefix,self.product)
1515

1616
def archive_version(self):
1717
"""Copy all files from latest in new versioned directory, excluding release-notes"""
@@ -132,7 +132,7 @@ def inject_url_frontmatter(self):
132132
if any("url" in f for f in frontmatter_lines):
133133
break
134134

135-
if file_path == self.new_directory + "/_index.md":
135+
if file_path == os.path.join(self.new_directory,"_index.md"):
136136
for idx, item in enumerate(frontmatter_lines):
137137
if "linkTitle" in item:
138138
frontmatter_lines[idx] = (

0 commit comments

Comments
 (0)