Skip to content

Commit

Permalink
Update Tribler's run scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
drew2a committed Mar 9, 2022
1 parent 3d6a9fc commit 0fa57d1
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 22 deletions.
14 changes: 4 additions & 10 deletions src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,11 @@ from` requirements.txt`.

##

Export to PYTHONPATH the following directories:
Export to the `PYTHONPATH` the `src` directory:

* tribler-core
* tribler-gui

Shortcut for macOS:
```shell script
export PYTHONPATH=${PYTHONPATH}:`echo {pyipv8,tribler-core,tribler-gui} | tr " " :`
```
Execute:
```
python3 -m pytest tribler-core
python3 -m pytest tribler-gui --guitests
python3 -m pytest .
python3 -m pytest . --no_parallel
python3 -m pytest . --guitests
```
2 changes: 0 additions & 2 deletions src/run_tests.bat

This file was deleted.

8 changes: 0 additions & 8 deletions src/run_tests.sh

This file was deleted.

2 changes: 1 addition & 1 deletion src/run_tribler.bat
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
set PYTHONPATH=%~dp0tribler-core;%~dp0tribler-gui;%~dp0pyipv8;%~dp0anydex
set PYTHONPATH=%~dp0tribler
python run_tribler.py
2 changes: 1 addition & 1 deletion src/tribler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ UNAME="$(uname -s)"

# Add all required modules to PYTHONPATH
SRC_DIR="$(dirname "$(script_path "$0")")/src"
PYTHONPATH="$PYTHONPATH:"$SRC_DIR/pyipv8":"$SRC_DIR/anydex":"$SRC_DIR/tribler-core":"$SRC_DIR/tribler-gui""
PYTHONPATH="$PYTHONPATH:$SRC_DIR"
export PYTHONPATH

TRIBLER_SCRIPT=$SRC_DIR/run_tribler.py
Expand Down

0 comments on commit 0fa57d1

Please sign in to comment.