Move escape file path to helper.py file
This commit is contained in:
parent
58ec300845
commit
7e0fea113b
2 changed files with 6 additions and 1 deletions
4
helper.py
Normal file
4
helper.py
Normal file
|
@ -0,0 +1,4 @@
|
|||
# Helper functions used by differet classes
|
||||
|
||||
def escape_file_path(file_path):
|
||||
return file_path.replace(" ", "\ ").replace("(", "\(").replace(")", "\)").replace("&", "\&")
|
Loading…
Add table
Add a link
Reference in a new issue