Python 3.5+, pip3
- Move to
<project-dir>
, create virtual environment and then activate it as
$ cd <project-dir>
$ virtualenv -p python3 .env
$ source .env/bin/activate
- Add project to
PYTHONPATH
as
$ export PYTHONPATH="$PYTHONPATH:." # . corresponds to current directory(project-dir)
- Then run test cases as
$ python -m unittest discover -s 'tests' -p '*.py'
- Then run the application
run.py
as
$ python run.py # Interactive mode
$ python run.py input_file_path.txt # File mode
-
If
create_parking_lot
command will be executed more than once, it will overwrite/remove the existing/previous information, and an empty parking lot will be created. -
Make sure
python
points topython3
on target machine, or else make appropriate changes in bash scripts(available under/bin
) .