Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 9 years ago.
Improve this question
If I use py2exe to convert a .pyw to a .exe, will it run with a console open? I have some Python files I want to run in the background that I'm going to need to have on computers that don't have Python installed.
Use the windows parameter (instead of console) in your py2exe configuration, and no terminal window will appear.
Make a py2exe exe run without a console?
Related
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 1 year ago.
Improve this question
Im pretty new in Kali and confused with the following issue:
Every time i create a text file, it is saved as a python file
If i want to open it, the python launcher for Windows tries to open the file, but it never happen.
Nevertheless, it is possible to open it with an text editor.
Why does it happen?
Where can i find the settings, so .txt documents are always loaded with gedit?
(I use an oracle vm to launch kali on my windows system)
rename your file with double quote "file.txt"
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 8 years ago.
Improve this question
I have implemented a new algorithm in python, using sources which use the numpy, scipy libraries and deal with file I/O. I now need to build a Windows GUI app (python might not be installed in any form on a Windows OS) which will implement my existing python source, and take inputs such as file names and some other parameters. Please suggest some possible methods to make this happen.
You may create a GUI for your app, using different options like as below:
wxPython
TkInter
PyQt
This question may help you too.
Regarding creating the final executable you have some options like as below:
py2exe
GUI2EXE
cx_freeze
PyInstaller
There are other issues regarding the creation of an executable discussed here on the SO you may refer to them here if you are interested.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
May someone please tell me how to set up code in Python that will allow me to open an .exe file?
The file location is:
C:\Users\Public\Videos\Sample Videos\New Folder\ksp-win-0-21-1\KSP_win cosmetic mods
and the file is called:
KSP.exe
Shorter code would be preferred, but it does not matter that much.
I don't know if it would make a difference, but I am using a Windows 7 computer.
import subprocess
subprocess.call(["C:\Users\Public\Videos\Sample Videos\New Folder\ksp-win-0-21-1\KSP_win cosmetic mods\KSP.exe"])
Another way to run an exe is through the os.system command:
import os
os.system("Path\\to\\file.exe")
The os.system command will allow you to run commands as if they were in your command prompt.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have tried to search for tutorials nothing exists is it even possible if yes how.
Use the Shell function to execute "python.exe yourscript.py". Note that this assumes python.exe is in your PATH. Otherwise, use the full path to python, usually c:\Python27
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
I want to run 'arp or config' commands on apache using python
from mod_python import apache
I have tested codes but the output is empty or command not found.
I think that i need to give permission to apache to access this command.
Use absolute commands:
/sbin/arp