Commit fbfe7abbf0a37d2eb59132457e01590419aece95

Authored by Etienne Pallier
1 parent c3b513dc
Exists in dev

renommé PYROS_.py en PYROSW.py

Showing 3 changed files with 1 additions and 73 deletions   Show diff stats
@@ -41,6 +41,7 @@ old/ @@ -41,6 +41,7 @@ old/
41 41
42 out.* 42 out.*
43 43
  44 +OLD/*
44 *_OLD* 45 *_OLD*
45 *_ORIG* 46 *_ORIG*
46 47
PYROS_.py renamed to PYROSW.py
PYROS_.sh deleted
@@ -1,73 +0,0 @@ @@ -1,73 +0,0 @@
1 -#!/usr/bin/env bash  
2 -  
3 -DEBUG=true  
4 -DEBUG=false  
5 -  
6 -# test if user passed a command as parameter  
7 -#if test $# -lt 1 ; then  
8 - #echo "Missing command, use one of the commands below"  
9 - #python3 pyros.py --help  
10 - #exit  
11 -#fi  
12 -  
13 -# Guess Context :  
14 -# - NO DOCKER,  
15 -# or  
16 -# - DOCKER OUT of container,  
17 -# or  
18 -# - or DOCKER IN container  
19 -  
20 -WITH_DOCKER_IS_SET=true  
21 -[ -z $WITH_DOCKER ] && WITH_DOCKER_IS_SET=false  
22 -  
23 -APP_FOLDER=false  
24 -[ -d ../app/ ] && APP_FOLDER=true  
25 -  
26 -VENV=false  
27 -[ -d ./venv/ ] && VENV=true  
28 -  
29 -# test if docker is installed  
30 -DOCKER_CMD=false  
31 -[ -x "$(command -v docker)" ] && DOCKER_CMD=true  
32 -  
33 -  
34 -# test if container is running  
35 -DOCKER_CONTAINER_STARTED=false  
36 -$DOCKER_CMD && [ $(docker ps | grep 'pyros' | wc -l) -eq 2 ] && DOCKER_CONTAINER_STARTED=true  
37 -  
38 -#  
39 -# SYNTHESIS  
40 -#  
41 -  
42 -DOCKER=false  
43 -[[ $VENV == false && $DOCKER_CMD == true ]] && DOCKER=true  
44 -  
45 -DOCKER_OUT_CONTAINER=false  
46 -[[ $DOCKER == true && $WITH_DOCKER_IS_SET == false ]] && DOCKER_OUT_CONTAINER=true  
47 -#[[ $DOCKER == false && $WITH_DOCKER_IS_SET == true ]] && DOCKER_IN_CONTAINER=true  
48 -  
49 -if $DEBUG ; then  
50 - echo $APP_FOLDER  
51 - echo $VENV  
52 - echo $DOCKER_CMD  
53 - echo $container  
54 -  
55 - # Synthesis  
56 - echo $DOCKER  
57 - echo $DOCKER_OUT_CONTAINER  
58 -  
59 - exit  
60 -fi  
61 -  
62 -  
63 -# no container ? => start container first  
64 -#[ $container == false ] && cd docker/ && docker-compose up -d  
65 -  
66 -# DOCKER_OUT_CONTAINER true ? docker exec  
67 -PREFIX=''  
68 -#docker exec -it pyros python3 pyros.py $*  
69 -[ $DOCKER_OUT_CONTAINER == true ] && cd docker/ && docker-compose up -d && PREFIX='docker exec -it pyros'  
70 -  
71 -echo $PREFIX  
72 -$PREFIX python3 pyros.py $*  
73 -