Skip to main content

Make Path related activities simple.

Project description

PyPath - Linux

darkmash-org

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyPathLinux-1.0.1.tar.gz (2.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page