Skip to content

make-executable is a linux command-line tool (specifically for Raspberry Pi) that allows you to make a Python script executable and/or turn it into a tool that can be accessed anywhere in the file system.

License

Notifications You must be signed in to change notification settings

Sim3-14159/make-executable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

make-executable

make-executable is a simple Raspberry Pi command-line tool that allows you to make a Python script executable. It can be used like this: make-executable [option] your file name. It also has a tool option (-t/--tool) which allows you to run the script from any directory like a built in tool.



🎬 Getting Started

  1. Pull the file make-executable.py onto your computer.

    cd "whatever/directory/you put your GitHub projects"
    git clone "https://github.com/Sim3-14159/make-executable.git"
  2. Enter these commands:

    cd make-executable/
    chmod +x make-executable.py
    sudo mv make-executable.py /usr/local/bin/make-executable
  3. Now you can use make-executable to make your own command-line tools!

  4. You can use it like this:

    make-executable your file name.py

    or

    make-executable -t your-file-name.py
    Notes
    - You can leave the spaces in between your file name.py without enclosing it in quotation marks ("your file name.py")
    - Before entering make-executable -t your file name.py, you may want to remove the .py extention from the file, or your tool will end with that same extention.


πŸ’» Dependencies

  • Python 3.x.


πŸ“ Notes

  • make-executable automatically adds the line !# /usr/bin/env python at the beginning of the file if not present. If your default version of Python is Python 2.x, not 3.x, and you want to make a Python 3 script executable, it may not work.

About

make-executable is a linux command-line tool (specifically for Raspberry Pi) that allows you to make a Python script executable and/or turn it into a tool that can be accessed anywhere in the file system.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages