pywebexec 1.3.2__tar.gz → 1.3.3__tar.gz

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.
Files changed (35) hide show
  1. {pywebexec-1.3.2/pywebexec.egg-info → pywebexec-1.3.3}/PKG-INFO +1 -1
  2. {pywebexec-1.3.2 → pywebexec-1.3.3}/pywebexec/pywebexec.py +7 -1
  3. pywebexec-1.3.3/pywebexec/static/css/Consolas NF.ttf +0 -0
  4. {pywebexec-1.3.2 → pywebexec-1.3.3}/pywebexec/static/css/style.css +6 -0
  5. {pywebexec-1.3.2 → pywebexec-1.3.3}/pywebexec/version.py +2 -2
  6. {pywebexec-1.3.2 → pywebexec-1.3.3/pywebexec.egg-info}/PKG-INFO +1 -1
  7. {pywebexec-1.3.2 → pywebexec-1.3.3}/pywebexec.egg-info/SOURCES.txt +1 -0
  8. {pywebexec-1.3.2 → pywebexec-1.3.3}/.github/workflows/python-publish.yml +0 -0
  9. {pywebexec-1.3.2 → pywebexec-1.3.3}/.gitignore +0 -0
  10. {pywebexec-1.3.2 → pywebexec-1.3.3}/LICENSE +0 -0
  11. {pywebexec-1.3.2 → pywebexec-1.3.3}/README.md +0 -0
  12. {pywebexec-1.3.2 → pywebexec-1.3.3}/pyproject.toml +0 -0
  13. {pywebexec-1.3.2 → pywebexec-1.3.3}/pywebexec/__init__.py +0 -0
  14. {pywebexec-1.3.2 → pywebexec-1.3.3}/pywebexec/static/css/xterm.css +0 -0
  15. {pywebexec-1.3.2 → pywebexec-1.3.3}/pywebexec/static/images/aborted.svg +0 -0
  16. {pywebexec-1.3.2 → pywebexec-1.3.3}/pywebexec/static/images/copy.svg +0 -0
  17. {pywebexec-1.3.2 → pywebexec-1.3.3}/pywebexec/static/images/copy_ok.svg +0 -0
  18. {pywebexec-1.3.2 → pywebexec-1.3.3}/pywebexec/static/images/down-arrow.svg +0 -0
  19. {pywebexec-1.3.2 → pywebexec-1.3.3}/pywebexec/static/images/failed.svg +0 -0
  20. {pywebexec-1.3.2 → pywebexec-1.3.3}/pywebexec/static/images/favicon.svg +0 -0
  21. {pywebexec-1.3.2 → pywebexec-1.3.3}/pywebexec/static/images/running.gif +0 -0
  22. {pywebexec-1.3.2 → pywebexec-1.3.3}/pywebexec/static/images/success.svg +0 -0
  23. {pywebexec-1.3.2 → pywebexec-1.3.3}/pywebexec/static/js/commands.js +0 -0
  24. {pywebexec-1.3.2 → pywebexec-1.3.3}/pywebexec/static/js/script.js +0 -0
  25. {pywebexec-1.3.2 → pywebexec-1.3.3}/pywebexec/static/js/xterm/LICENSE +0 -0
  26. {pywebexec-1.3.2 → pywebexec-1.3.3}/pywebexec/static/js/xterm/ansi_up.min.js +0 -0
  27. {pywebexec-1.3.2 → pywebexec-1.3.3}/pywebexec/static/js/xterm/xterm-addon-fit.js +0 -0
  28. {pywebexec-1.3.2 → pywebexec-1.3.3}/pywebexec/static/js/xterm/xterm.js +0 -0
  29. {pywebexec-1.3.2 → pywebexec-1.3.3}/pywebexec/templates/__init__.py +0 -0
  30. {pywebexec-1.3.2 → pywebexec-1.3.3}/pywebexec/templates/index.html +0 -0
  31. {pywebexec-1.3.2 → pywebexec-1.3.3}/pywebexec.egg-info/dependency_links.txt +0 -0
  32. {pywebexec-1.3.2 → pywebexec-1.3.3}/pywebexec.egg-info/entry_points.txt +0 -0
  33. {pywebexec-1.3.2 → pywebexec-1.3.3}/pywebexec.egg-info/requires.txt +0 -0
  34. {pywebexec-1.3.2 → pywebexec-1.3.3}/pywebexec.egg-info/top_level.txt +0 -0
  35. {pywebexec-1.3.2 → pywebexec-1.3.3}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: pywebexec
3
- Version: 1.3.2
3
+ Version: 1.3.3
4
4
  Summary: Simple Python HTTP Exec Server
5
5
  Home-page: https://github.com/joknarf/pywebexec
6
6
  Author: Franck Jouvanceau
@@ -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 = '-F'
333
+ else:
334
+ script_opt = '-f'
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)
@@ -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;
@@ -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.3'
16
+ __version_tuple__ = version_tuple = (1, 3, 3)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: pywebexec
3
- Version: 1.3.2
3
+ Version: 1.3.3
4
4
  Summary: Simple Python HTTP Exec Server
5
5
  Home-page: https://github.com/joknarf/pywebexec
6
6
  Author: Franck Jouvanceau
@@ -13,6 +13,7 @@ pywebexec.egg-info/dependency_links.txt
13
13
  pywebexec.egg-info/entry_points.txt
14
14
  pywebexec.egg-info/requires.txt
15
15
  pywebexec.egg-info/top_level.txt
16
+ pywebexec/static/css/Consolas NF.ttf
16
17
  pywebexec/static/css/style.css
17
18
  pywebexec/static/css/xterm.css
18
19
  pywebexec/static/images/aborted.svg
File without changes
File without changes
File without changes
File without changes
File without changes