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

Uploaded Source

File details

Details for the file pyPathLinux-1.0.1.tar.gz.

File metadata

  • Download URL: pyPathLinux-1.0.1.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for pyPathLinux-1.0.1.tar.gz
Algorithm Hash digest
SHA256 2e344a43c7c4cf94a5ae5bc5219961773131b8af8208dba2d02e93408d442d3e
MD5 c355f4bb076bcdf1a26460072cb408a6
BLAKE2b-256 6845fd8b0b031f974dfa21bac074d49f8d5d768032449f1239308f5b8c2d9f26

See more details on using hashes here.

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