Feature Description
Supporting Information
Environment: Citrix virtual desktop with mapped network drives
Current behavior: CORE executable fails to resolve file paths and/or dependent DLLs when executed from mapped drives
Related issue: Running CORE executable in Citrix environment (mapped drive path resolution failure) #1747
In addition to the mapped drive resolution issue, there appears to be a broader limitation in how the application handles dynamic path and dependency resolution across environments.
Enhancement Proposal
A potential long-term improvement would be to align CORE’s path and dependency handling with established Python best practices, particularly:
Explicit dependency handling similar to Python “requirements” patterns (clear, environment-independent dependency definition)
Dynamic DLL resolution using approaches analogous to os.add_dll_directory(), rather than relying on implicit or environment-specific paths
Consistent use of absolute paths to avoid ambiguity introduced by mapped drives or virtualized environments
Rationale
The current issue is not specific to Citrix and may impact any environment where:
Drive mappings differ from expected local paths
Execution context changes (e.g., virtualization, containers, remote sessions)
Adopting more standardized Python-like practices would:
Improve portability across environments
Reduce dependency on local/mapped path assumptions
Increase robustness and reproducibility of execution
Expected Outcome
CORE executable can reliably resolve dependencies regardless of environment (local, mapped drive, Citrix, etc.)
Reduced environment-specific configuration and troubleshooting
Alignment with widely accepted Python dependency and path management practices
References:
https://runebook.dev/en/docs/python/library/os/os.add_dll_directory
Troubleshooting Python DLL Loading: Common os.add_dll_directory() Issues and Fixes
https://stackoverflow.com/questions/67805339/is-the-function-os-add-dll-directory-adding-directories-permanently
Is the function os. add_dll_directory() adding directories permanently?
https://coderivers.org/blog/python-absolute-path/
Understanding and Working with Python Absolute Paths
Feature Description
Supporting Information
Environment: Citrix virtual desktop with mapped network drives
Current behavior: CORE executable fails to resolve file paths and/or dependent DLLs when executed from mapped drives
Related issue: Running CORE executable in Citrix environment (mapped drive path resolution failure) #1747
In addition to the mapped drive resolution issue, there appears to be a broader limitation in how the application handles dynamic path and dependency resolution across environments.
Enhancement Proposal
A potential long-term improvement would be to align CORE’s path and dependency handling with established Python best practices, particularly:
Explicit dependency handling similar to Python “requirements” patterns (clear, environment-independent dependency definition)
Dynamic DLL resolution using approaches analogous to os.add_dll_directory(), rather than relying on implicit or environment-specific paths
Consistent use of absolute paths to avoid ambiguity introduced by mapped drives or virtualized environments
Rationale
The current issue is not specific to Citrix and may impact any environment where:
Drive mappings differ from expected local paths
Execution context changes (e.g., virtualization, containers, remote sessions)
Adopting more standardized Python-like practices would:
Improve portability across environments
Reduce dependency on local/mapped path assumptions
Increase robustness and reproducibility of execution
Expected Outcome
CORE executable can reliably resolve dependencies regardless of environment (local, mapped drive, Citrix, etc.)
Reduced environment-specific configuration and troubleshooting
Alignment with widely accepted Python dependency and path management practices
References:
https://runebook.dev/en/docs/python/library/os/os.add_dll_directory
Troubleshooting Python DLL Loading: Common os.add_dll_directory() Issues and Fixes
https://stackoverflow.com/questions/67805339/is-the-function-os-add-dll-directory-adding-directories-permanently
Is the function os. add_dll_directory() adding directories permanently?
https://coderivers.org/blog/python-absolute-path/
Understanding and Working with Python Absolute Paths