2021-06-12 13:54:08 +02:00
|
|
|
# TMTC Commander EIVE
|
2020-12-17 17:50:00 +01:00
|
|
|
|
2021-08-09 11:45:01 +02:00
|
|
|
# Run Linter
|
|
|
|
|
|
|
|
Can be used to quickly check validity of script. Install `flake8` first
|
|
|
|
|
|
|
|
```sh
|
|
|
|
python3 -m pip install flake8
|
|
|
|
```
|
|
|
|
|
|
|
|
or on Windows
|
|
|
|
|
|
|
|
```sh
|
|
|
|
py -m pip install flake8
|
|
|
|
```
|
|
|
|
|
|
|
|
and then run the `lint.py` script
|
|
|
|
|
|
|
|
```sh
|
|
|
|
./lint.py
|
|
|
|
```
|
|
|
|
|
2021-06-12 13:54:08 +02:00
|
|
|
# Set up virtual environment
|
|
|
|
|
|
|
|
## Linux
|
|
|
|
|
|
|
|
1. Create virtual environment
|
|
|
|
|
|
|
|
```sh
|
|
|
|
python3 -m venv .
|
|
|
|
```
|
|
|
|
|
|
|
|
2. Activate virtual environment
|
|
|
|
|
|
|
|
```sh
|
|
|
|
./Scripts/activate
|
|
|
|
```
|
|
|
|
|
|
|
|
3. Install `tmtccmd` for virtual environment. `-e` for interactive installation.
|
|
|
|
|
|
|
|
```sh
|
|
|
|
cd tmtccmd
|
|
|
|
python3 -m pip install -e .[gui]
|
|
|
|
```
|
|
|
|
|
|
|
|
## Windows
|
|
|
|
|
|
|
|
1. Create virtual environment
|
|
|
|
|
|
|
|
```sh
|
|
|
|
py -m venv .
|
|
|
|
```
|
|
|
|
|
|
|
|
2. Activate virtual environment
|
|
|
|
|
|
|
|
```sh
|
|
|
|
Scripts\activate.bat
|
|
|
|
```
|
|
|
|
|
|
|
|
3. Install `tmtccmd` for virtual environment. `-e` for interactive installation.
|
|
|
|
|
|
|
|
```sh
|
|
|
|
cd tmtccmd
|
|
|
|
py -m pip install -e .[gui]
|
|
|
|
```
|
2020-12-17 17:50:00 +01:00
|
|
|
|