Make Path related activities simple.
pip install pyPathLinux
import pyPath
my_path = pyPath()
For making a Bash file which will call a target python file.
args:
filename,
target_pyfile="",
content_edited=None,
allow_args=False,
max_num_args=0
Use:
print(my_path.addfile_to_path("/home/programming/test_123_2.sh",
"test_123_2.sh",
exe=True))
For adding file to path.
args:
path,
file_name,
exe=False,
permissions=None
returns the items in the path.
return if a path exists.
args:
path
Adds a dir to path Temp.
agrs:
path
Adds a dir to path.
args:
path,
path_to_bashrc