datatailr 0.1.61__py3-none-any.whl → 0.1.62__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.

Potentially problematic release.


This version of datatailr might be problematic. Click here for more details.

@@ -88,14 +88,28 @@ def run_command_as_user(command: str | list, user: str, env_vars: dict):
88
88
  """
89
89
  Run a command as a specific user with the given environment variables.
90
90
  """
91
- python_libdir = sysconfig.get_config_var("LIBDIR")
92
-
93
91
  if isinstance(command, str):
94
92
  command = command.split(" ")
93
+
94
+ python_libdir = sysconfig.get_config_var("LIBDIR")
95
+ python_scripts_dir = sysconfig.get_path("scripts")
96
+
97
+ python_path = get_env_var("PYTHONPATH", "")
98
+ if python_path:
99
+ python_path = python_path + ":" + python_scripts_dir
100
+ else:
101
+ python_path = python_scripts_dir
102
+
103
+ ld_library_path = get_env_var("LD_LIBRARY_PATH", "")
104
+ if ld_library_path:
105
+ python_libdir = ld_library_path + ":" + python_libdir
106
+ else:
107
+ python_libdir = python_libdir
108
+
95
109
  env_vars = {
96
110
  "PATH": get_env_var("PATH", ""),
97
- "PYTHONPATH": get_env_var("PYTHONPATH", ""),
98
- "LD_LIBRARY_PATH": get_env_var("LD_LIBRARY_PATH", "") + ":" + python_libdir,
111
+ "PYTHONPATH": python_path,
112
+ "LD_LIBRARY_PATH": python_libdir,
99
113
  } | env_vars
100
114
 
101
115
  env_kv = [f"{k}={v}" for k, v in env_vars.items()]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: datatailr
3
- Version: 0.1.61
3
+ Version: 0.1.62
4
4
  Summary: Ready-to-Use Platform That Drives Business Insights
5
5
  Author-email: Datatailr <info@datatailr.com>
6
6
  License-Expression: MIT
@@ -12,7 +12,7 @@ datatailr/wrapper.py,sha256=K9ZD76cWey_ikA6C5sKejwRaYBDln4QMg-RcoRGiuFc,7991
12
12
  datatailr/build/__init__.py,sha256=_dA7b4L6wsaAFaSxUoYSJ1oaRqDHDMR20kqoCocSOss,487
13
13
  datatailr/build/image.py,sha256=YC8ML-l-sj6TcIBY-DCx_vaeI_7SmL9fPFhHnuxzRh0,5509
14
14
  datatailr/excel/__init__.py,sha256=IpXEPIFuu8IG3uQ8k7FDHqiHnChtyp-jgE8Plx2cWXQ,656
15
- datatailr/sbin/datatailr_run.py,sha256=My7W7wSeYKe_CoEoR4z88ghS9P0RU_fR1iAD8n_FjTY,7327
15
+ datatailr/sbin/datatailr_run.py,sha256=H2L1qvl8d3pYGxjCv87MnR_Zc1jS38kZHrxC0-Us1bw,7695
16
16
  datatailr/sbin/datatailr_run_app.py,sha256=itF76XC2F4RK9s6bkoEppEiYwSLHK_5Jai3yvC-kFhY,1501
17
17
  datatailr/sbin/datatailr_run_batch.py,sha256=UWnp96j_G66R_Cape7Bb-rbK6UBLF7Y5_mTlWyGJAVQ,1818
18
18
  datatailr/sbin/datatailr_run_excel.py,sha256=MY2XH-T5bWABR23C_15eLhjaxggGRgjRhA-ByS6CtMc,1422
@@ -25,9 +25,9 @@ datatailr/scheduler/batch_decorator.py,sha256=LqL1bsupWLn-YEQUvFJYae7R3ogrL5-Vod
25
25
  datatailr/scheduler/constants.py,sha256=5WWTsfwZ_BA8gVDOTa2AQX9DJ0NzfaWgtY3vrODS2-8,606
26
26
  datatailr/scheduler/schedule.py,sha256=0XJJen2nL1xplRs0Xbjwgq3T-0bFCOrJzkSALdio998,3741
27
27
  datatailr/scheduler/utils.py,sha256=up6oR2iwe6G52LkvgfO394xchXgCYNjOMGRQW3e8PQk,1082
28
- datatailr-0.1.61.dist-info/licenses/LICENSE,sha256=ikKP4_O-UD_b8FuNdKmbzTb6odd0JX085ZW_FAPN3VI,1066
29
- datatailr-0.1.61.dist-info/METADATA,sha256=4QYbJdNWVzWEZsuXTvRwqi5sJ0W6Z1beHyxLg2cMV2E,5146
30
- datatailr-0.1.61.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
31
- datatailr-0.1.61.dist-info/entry_points.txt,sha256=YqXfk2At-olW4PUSRkqvy_O3Mbv7uTKCCPuAAiz3Qbg,312
32
- datatailr-0.1.61.dist-info/top_level.txt,sha256=75gntW0X_SKpqxLL6hAPipvpk28GAhJBvoyqN_HohWU,10
33
- datatailr-0.1.61.dist-info/RECORD,,
28
+ datatailr-0.1.62.dist-info/licenses/LICENSE,sha256=ikKP4_O-UD_b8FuNdKmbzTb6odd0JX085ZW_FAPN3VI,1066
29
+ datatailr-0.1.62.dist-info/METADATA,sha256=_0mvZeoBlbhd3vl6OeMXceVJdbCZDcZLUukpLJdurYY,5146
30
+ datatailr-0.1.62.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
31
+ datatailr-0.1.62.dist-info/entry_points.txt,sha256=YqXfk2At-olW4PUSRkqvy_O3Mbv7uTKCCPuAAiz3Qbg,312
32
+ datatailr-0.1.62.dist-info/top_level.txt,sha256=75gntW0X_SKpqxLL6hAPipvpk28GAhJBvoyqN_HohWU,10
33
+ datatailr-0.1.62.dist-info/RECORD,,