(forgive my poor English)
I’m writing setup.py for my Python app.
My app needs some static files (pictures). I should add these files to data_files array in setup.py, and files will be installed in “/usr/xxx” path on Linux.
Then how can my app access these files after installation? I don’t think it’s good idea to use abslote path (like /usr/share/xxx/xxx.png) in my app (it won’t work on windows).
You’re supposed to use sys.prefix instead of an absolute path: