• Status: Solved
  • Priority: High
  • Security: Public
  • Views: 72
  • Last Modified:

Are images stored in a Python project folder as efficient as my web_space?


On my last RTS, I stored all my images, animated GIF's in my webspace, a folder. (It seemed most convenient for a distributed Java RTS, to pull my media from there)
But, in Pycharm, there can be folders within the project area. If I store my images there, is it as efficient as on my web domain? Where should I keep my project images and sounds? How is the app distributed, like a JAR file? Are there disadvantages?

  • 2
1 Solution
disk space will be the same independent of where the folder containing the images is located.

However the more important issue is how you want to distribute your code.

If they are part of the python package myapp, then you could create a directory myapp/data where you store all required files

If the person that wants to run your app has python installed then the simplest way to create an application is to create a python package.

(creating a file named setup.py, which has to describe which files data has to be added)

some inital info can be found at https://docs.python.org/3/distutils/setupscript.html
if you created the setup.py properly you can create a tar file of your application that can then be installed by other userss with pip install.

if you want to create an executable, that does not need python, then you can look at tools like pyinstaller / cxfreeze / py2exe / . . .
beavoidAuthor Commented:

What do most people do, - in real world use - do they have their apps launched in a browser.
How many people make desktop python projects?
I don't know. More and more people implement web interfaces, if performance is not critical, but that means, that you have to know python and html and javascript (and ideally for bigger projects a javascript frame work like VueJs / AngularJS or ReactJS)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now