-
Notifications
You must be signed in to change notification settings - Fork 0
/
packaging_tutorial_start.sh
47 lines (33 loc) · 1.06 KB
/
packaging_tutorial_start.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/bash
# Project: packaging_tutorial
#
# Github repository: https://github.com/juancarlosmiranda/packaging_tutorial
# Author: Juan Carlos Miranda
# https://juancarlosmiranda.github.io/
# https://github.com/juancarlosmiranda
#
# commands definitions
PYTHON_CMD='python3'
# folders names definitions
DEVELOPMENT_ENV_PATH='development_env'
COMMON_ENV_PATH='bin/activate'
# files extensions names
EXT_SCRIPTS_SH='*.sh'
EXT_ZIP='.zip'
# folders names definitions
DEVELOPMENT_PATH='development'
DEVELOPMENT_ENV_PATH='development_env'
COMMON_ENV_PATH='bin/activate'
# software folders names
FRAME_EXTRACTOR_NAME='ak_frame_extractor-main'
# project folders
ROOT_FOLDER_F=$HOME/$DEVELOPMENT_PATH/ #$ROOT_FOLDER_NAME/
FRAME_EXTRACTOR_NAME_F=$ROOT_FOLDER_F$FRAME_EXTRACTOR_NAME/
# environment folders
ENV_NAME='_venv'
ROOT_ENV_F=$HOME/$DEVELOPMENT_ENV_PATH/ #$ROOT_FOLDER_NAME$ENV_NAME/
FRAME_EXTRACTOR_NAME_ENV_F=$ROOT_ENV_F$FRAME_EXTRACTOR_NAME$ENV_NAME/
# activating environments
source $FRAME_EXTRACTOR_NAME_ENV_F$COMMON_ENV_PATH
python ak_frame_extractor_main.py
deactivate