Skip to content

merwin-asm/pypath

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

PyPath - Linux

darkmash-org

Make Path related activities simple.

Install

    pip install pyPathLinux

How To Use:

import pyPath 

my_path = pyPath()

make_redirecting_bashfile()

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))

addfile_to_path()

For adding file to path.

args:

path,
file_name,
exe=False,
permissions=None

seek_to_path()

returns the items in the path.

path_var_exists()

return if a path exists.

args:

path

add_dir_to_path_TEMP()

Adds a dir to path Temp.

agrs:

path

add_dir_to_path_PERMANENT()

Adds a dir to path.

args:

path,
path_to_bashrc

About

A python module for path related functions for linux...

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages