use quickly to make a config folder in home [closed] - python

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I need to make a ~/folder/configFile to use with my aplication. when the deb package is created by "quickly" should create this folder with this file. Someone can teach me to do it?
By the way, can also tell me where should I put my axillary files ".py" in the project folders (like classes and stuff)?

See homepath in the docs. You can put your axillary files in the same folder as your application's or in a subdirectory and make them part of packages.

Related

Consider adding this directory to PATH [duplicate]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I need to add ~/bin directory in your path.
But I am not sure what the actual command for this is, I know it goes in my .bash_profile
Does anyone know this, or a tutorial on how to set up a new .bash_profile for a terminal on a new mac (UNIX)
Add this to .bash_profile:
export PATH="$PATH":~/bin
If you don't have a .bash_profile, just create it.

Python package only working for root user not for others | Using linux suse [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I have installed Python package 'forcast' using root and it runs fine but all other Linux users wont be able to see this package or import it in code .
Please help me, i have checked /usr/lib/ all package are present.
Is it possible that users do not have permission to access the files? check the access modes to the files in the package - you need +rx for directories and +r for files.
Another option is that this path is not searched by default, and you need to add it to PYTHONPATH for the users.

Is any way to generate a multiplataform exe/executable from a python file? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
I want to convert a .py file into a multiplataform (Windows, Linux,..) onefile (without librarys or other folders) executable file for using it without a Python installation.
PyInstaller has the option to create a one-file application, just use the "-F" or "--onefile" argument when using it. I have never tried it on Linux though, on Windows I think it works.
PyInstaller Documentation at "What to generate"

what does './' before a python filename do? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I'm following a Flask tutorial, in which I created a virtual environment to run the application.
To run the file, it asks me to run this command:
./run.py
as opposed to:
python run.py
What does the ./ do exactly and why is it necessary?
It is used because the current directory is not in $PATH. And the reason why it is not in the current directory on that list is security.
So in simple terms you can say that the ./ says 'search in the current directory for my script rather than searching at all the directories specified in $PATH'.

How do I run a Python script on my web server? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I've just started learning Python, and I'm pretty lost right now. I want to run my script on my server that is hosted through hosting24.com. Their FAQ says they support Python, but I have no clue where to put my script for it to run.
There is a folder called cgi-bin in my root, I'm guessing that is where I put my script? Can someone explain to me how this works?
Very simply, you can rename your Python script to "pythonscript.cgi".
Post that in your cgi-bin directory, add the appropriate permissions and browse to it.
This is a great link you can start with.
Here's another good one.
Hope that helps.
EDIT (09/12/2015): The second link has long been removed. Replaced it with one that provides information referenced from the original.

Categories

Resources