pywebexec 1.3.2__py3-none-any.whl → 1.3.4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
pywebexec/pywebexec.py CHANGED
@@ -17,6 +17,7 @@ from socket import gethostname, gethostbyname_ex, gethostbyaddr, inet_aton, inet
17
17
  import ssl
18
18
  import re
19
19
  import pwd
20
+ import platform
20
21
  from secrets import token_urlsafe
21
22
 
22
23
  if os.environ.get('PYWEBEXEC_LDAP_SERVER'):
@@ -327,7 +328,12 @@ def parseargs():
327
328
  user = pwd.getpwuid(os.getuid())[0]
328
329
  update_command_status(command_id, 'running', command="term", params=[user,os.ttyname(sys.stdout.fileno())], start_time=start_time, user=user)
329
330
  output_file_path = get_output_file_path(command_id)
330
- res = os.system(f"script -f {output_file_path}")
331
+ if platform.system() == 'Darwin':
332
+ script_opt = '-qF'
333
+ else:
334
+ script_opt = '-qf'
335
+ res = os.system(f"script {script_opt} {output_file_path}")
336
+
331
337
  end_time = datetime.now().isoformat()
332
338
  update_command_status(command_id, status="success", end_time=end_time, exit_code=res)
333
339
  sys.exit(res)
Binary file
@@ -1,3 +1,9 @@
1
+ @font-face {
2
+ font-family: 'Consolas NF';
3
+ src: url('/static/css/Consolas NF.ttf');
4
+ font-weight: 400;
5
+ font-style: normal;
6
+ }
1
7
  body {
2
8
  font-family: Arial, sans-serif;
3
9
  overflow: hidden;
pywebexec/version.py CHANGED
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '1.3.2'
16
- __version_tuple__ = version_tuple = (1, 3, 2)
15
+ __version__ = version = '1.3.4'
16
+ __version_tuple__ = version_tuple = (1, 3, 4)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: pywebexec
3
- Version: 1.3.2
3
+ Version: 1.3.4
4
4
  Summary: Simple Python HTTP Exec Server
5
5
  Home-page: https://github.com/joknarf/pywebexec
6
6
  Author: Franck Jouvanceau
@@ -1,7 +1,8 @@
1
1
  pywebexec/__init__.py,sha256=4spIsVaF8RJt8S58AG_wWoORRNkws9Iwqprj27C3ljM,99
2
- pywebexec/pywebexec.py,sha256=ljvGw-inDwsP6KQqYwwfKUeN_q9k7JwyP7PfRacnqFQ,25475
3
- pywebexec/version.py,sha256=ik9WUFYTvRcmzFEUSqkI2H_62uw0XFdUT3mTLq8-_RY,411
4
- pywebexec/static/css/style.css,sha256=h0IzV2hI2kpHmk4sCm6oAKlfFexfy2JTn1sEOl89ceA,5440
2
+ pywebexec/pywebexec.py,sha256=CsixpYwvlg2FUt05aEKMntvUtdmEhRL3EaSQixIq4bY,25620
3
+ pywebexec/version.py,sha256=q-rMkBhc2cbe8SdkcXn0kh8Fvtl2cIlapH0EvPC1bmc,411
4
+ pywebexec/static/css/Consolas NF.ttf,sha256=DJEOzF0eqZ-kxu3Gs_VE8X0NJqiobBzmxWDGpdgGRxI,1313900
5
+ pywebexec/static/css/style.css,sha256=iLX6k1hoWLinZWyqtbH50U-0hND2M-5_Zr1U1UC_gos,5578
5
6
  pywebexec/static/css/xterm.css,sha256=gy8_LGA7Q61DUf8ElwFQzHqHMBQnbbEmpgZcbdgeSHI,5383
6
7
  pywebexec/static/images/aborted.svg,sha256=_mP43hU5QdRLFZIknBgjx-dIXrHgQG23-QV27ApXK2A,381
7
8
  pywebexec/static/images/copy.svg,sha256=d9OwtGh5GzzZHzYcDrLfNxZYLth1Q64x7bRyYxu4Px0,622
@@ -19,9 +20,9 @@ pywebexec/static/js/xterm/xterm-addon-fit.js,sha256=Pprm9pZe4SadVXS5Bc8b9VnC9Ex4
19
20
  pywebexec/static/js/xterm/xterm.js,sha256=Bzka76jZwEhVt_LlS0e0qMw7ryGa1p5qfxFyeohphBo,283371
20
21
  pywebexec/templates/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
21
22
  pywebexec/templates/index.html,sha256=DYtT555wSNhnFtzzHhPMWJireynCJNnAuTytpoORQeE,2321
22
- pywebexec-1.3.2.dist-info/LICENSE,sha256=gRJf0JPT_wsZJsUGlWPTS8Vypfl9vQ1qjp6sNbKykuA,1064
23
- pywebexec-1.3.2.dist-info/METADATA,sha256=RHmZ3Uk76T03J2VOLUo2pfAofuwUgw42GQIOxpX8ZKk,7397
24
- pywebexec-1.3.2.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
25
- pywebexec-1.3.2.dist-info/entry_points.txt,sha256=l52GBkPCXRkmlHfEyoVauyfBdg8o-CAtC8qQpOIjJK0,55
26
- pywebexec-1.3.2.dist-info/top_level.txt,sha256=vHoHyzngrfGdm_nM7Xn_5iLmaCrf10XO1EhldgNLEQ8,10
27
- pywebexec-1.3.2.dist-info/RECORD,,
23
+ pywebexec-1.3.4.dist-info/LICENSE,sha256=gRJf0JPT_wsZJsUGlWPTS8Vypfl9vQ1qjp6sNbKykuA,1064
24
+ pywebexec-1.3.4.dist-info/METADATA,sha256=WofvGA3I_xqTnXrhZ6ie1WXXRE_7aQ6gIT2vYwjS7BM,7397
25
+ pywebexec-1.3.4.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
26
+ pywebexec-1.3.4.dist-info/entry_points.txt,sha256=l52GBkPCXRkmlHfEyoVauyfBdg8o-CAtC8qQpOIjJK0,55
27
+ pywebexec-1.3.4.dist-info/top_level.txt,sha256=vHoHyzngrfGdm_nM7Xn_5iLmaCrf10XO1EhldgNLEQ8,10
28
+ pywebexec-1.3.4.dist-info/RECORD,,