A combination of Python and shell scripts to verify if your variables are functioning correctly within your program. This project includes scripts for Linux, macOS, and Windows platforms.
- Python 3 must be installed on your system.
- Ensure that the
declare-variable.py
script is in the same directory as the script you are running.
Note: The scripts are located in the "scripts" folder.
The project provides scripts for Linux, macOS, and Windows to execute the declare-variable.py
script and check its functionality. Follow the instructions below based on your operating system:
Read: Edit your values in declare-variable.py
. There will be instructions in the form of comments to guide you through using the file.
-
Open a Terminal:
- Access the terminal application on your system.
-
Navigate to the Script Directory:
- Use the
cd
command to change to the directory containing the scripts and thedeclare-variable.py
file.
cd /path/to/check-my-python-variable
- Use the
3.Run the Script:
For Linux, execute:
./test-variable-linux.sh
For macOS, execute:
./test-variable-mac.sh
- Verify Execution:
The script will check for the existence of
declare-variable.py
, execute it, and print a success message if it runs without errors. If any issues occur, an error message will be displayed.
For Windows
- Open PowerShell:
Access PowerShell from the Start menu or by searching for "PowerShell."
2.Navigate to the Script Directory:
Use the cd command to change to the directory containing the scripts and the
declare-variable.py
file. cdC:\path\to\check-my-variable
3.Run the Script:
Execute the PowerShell script:
.\test-variable.ps1
- Verify Execution:
The script will check for the existence of
declare-variable.py
, execute it, and print a success message if it runs without errors. If any issues occur, an error message will be displayed.
Additional Information Ensure that Python is accessible via the python3 command on Linux and macOS, and python on Windows. The scripts are designed to provide clear feedback on the execution status of the declare-variable.py script, helping you identify any issues with variable functionality. README.md
This version provides a detailed, step-by-step guide for users on all platforms, ensuring clarity and ease of use.