Created
September 1, 2024 19:29
-
-
Save kazeno/469a7c2d6d8989c140232542bd3b20f7 to your computer and use it in GitHub Desktop.
Example of retrieving the {data install scheme dir} and {scripts install scheme dir} paths in Python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # example of retrieving the {data install scheme dir} and {scripts install scheme dir} paths | |
| import sysconfig | |
| data_path = sysconfig.get_path('data') | |
| scripts_path = sysconfig.get_path('scripts') | |
| # now you can construct the full paths to the stuff you need inside those directories... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment