Skip to content

Instantly share code, notes, and snippets.

@kazeno
Created September 1, 2024 19:29
Show Gist options
  • Select an option

  • Save kazeno/469a7c2d6d8989c140232542bd3b20f7 to your computer and use it in GitHub Desktop.

Select an option

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
# 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