Commit c8bf9d2 1 parent a778c15 commit c8bf9d2 Copy full SHA for c8bf9d2
File tree 2 files changed +9
-10
lines changed
2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 2
2
3
3
from setuptools import setup , find_packages
4
4
5
- from pathlib import Path
6
-
7
5
from setuptools .command .install import install as _install
8
6
9
7
10
8
def _post_install ():
11
9
from subprocess import getstatusoutput
12
- _ , out = getstatusoutput ('activate-global-python-argcomplete;env ' )
10
+ _ , out = getstatusoutput ('activate-global-python-argcomplete --user ' )
13
11
print (out )
14
12
15
- if "zsh" in os .environ .get ("SHELL" , "" ):
16
- path = f"{ os .environ .get ('HOME' )} /.zshenv"
17
- else :
18
- path = f"{ os .environ .get ('HOME' )} /.bash_completion"
19
- if os .path .isfile (path ):
20
- _ , out = getstatusoutput (f'source { path } ' )
13
+ if os .environ .get ("SHELL" ) and os .environ .get ("HOME" ):
14
+ if "zsh" in os .environ .get ("SHELL" , "" ):
15
+ path = f"{ os .environ .get ('HOME' )} /.zshenv"
16
+ else :
17
+ path = f"{ os .environ .get ('HOME' )} /.bash_completion"
18
+ if os .path .isfile (path ):
19
+ _ , out = getstatusoutput (f'source { path } ' )
21
20
22
21
23
22
class install (_install ):
Original file line number Diff line number Diff line change 1
1
SIMPLY_BLOCK_COMMAND_NAME=sbcli-dev
2
- SIMPLY_BLOCK_VERSION=10.1.69
2
+ SIMPLY_BLOCK_VERSION=10.1.70
3
3
4
4
SIMPLY_BLOCK_DOCKER_IMAGE=simplyblock/simplyblock:main
5
5
DOCKER_USER=hamdysimplyblock
You can’t perform that action at this time.
0 commit comments