aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorMunyoki Kilyungi2023-09-11 18:47:54 +0300
committerBonfaceKilz2023-09-11 18:50:22 +0300
commit44a1ba89c7432c83e1fffbf4c16917ab645ee299 (patch)
treeaf956bfb9c552cce0b501e1585c727859dc6b49c /wqflask
parent8cd7383aa2c2a319298d94e7f3d2f6085c92bee0 (diff)
downloadgenenetwork2-44a1ba89c7432c83e1fffbf4c16917ab645ee299.tar.gz
Replace string concat with os.path.join.
* wqflask/utility/tools.py (assert_writable_dir): Use "os.path.join" to concatenate paths. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/utility/tools.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/utility/tools.py b/wqflask/utility/tools.py
index 4c331f8a..3dc01b91 100644
--- a/wqflask/utility/tools.py
+++ b/wqflask/utility/tools.py
@@ -158,7 +158,7 @@ def assert_dir(the_dir):
def assert_writable_dir(dir):
try:
- fn = dir + "/test.txt"
+ fn = os.path.join(dir, "test.txt")
fh = open(fn, 'w')
fh.write("I am writing this text to the file\n")
fh.close()