executable

How to get output of exe in python script?

一世执手 提交于 2019-12-04 08:40:28
问题 When I call an external .exe program in Python, how can I get printf output from the .exe application and print it to my Python IDE? 回答1: To call an external program from Python, use the subprocess module. The subprocess module allows you to spawn new processes, connect to their input/output/error pipes, and obtain their return codes. An example from the doc ( output is a file object that provides output from the child process.): output = subprocess.Popen(["mycmd", "myarg"], stdout=subprocess

PyInstaller creates slow executable

試著忘記壹切 提交于 2019-12-04 08:25:39
问题 I'm using PyInstaller to create a single executable of a python program using PyQt. It creates the .exe and runs fine, but takes between 15 to 20 seconds to start. I thought I could get by with creating a splash screen so the user would at least know something was happening, unfortunately, the splash screen doesn't show up any quicker than the program window itself. I also created the same program as -onedir, the program does start quicker, but this isn't really an option for distribution. If

create a JAVA Standalone executable application to run on different platforms without any Installation

天涯浪子 提交于 2019-12-04 07:44:49
I have created a run time image for my Java application using jlink and I would like to be able to ship my app as an executable to different platforms. Ideally, it would be a single file that a user can double click and start the application without the need for installing anything. Is there currently a good way to do this? You can make an installer that installs the JDK and the application. Make the application an exe by using something like Launch4j and for a Mac executable follow this tutorial by Oracle: Packaging a Java App for Distribution on a Mac and lastly: For Linux Minecraft uses

Fat Mach-O Executable Multi-purpose?

别来无恙 提交于 2019-12-04 06:46:48
问题 I am currently working with Mach-O Executables on my Mac and A question just came across me, Can a single Fat Mach-O Executable file have multiple purposes? Eg. Could I Have a single Mach-O Executable File with a Fat Header specifying 2 Executables: Executable 1 : This executable could be a Dynamic Library allowing Its code to be loaded in external applications. and Executable 2 : This executable could be an Executable allowing It to be independently launched through Terminal or as an

Executing python script in android terminal emulator

混江龙づ霸主 提交于 2019-12-04 06:21:38
I installed python 2.7 in my Android device and I tried executing a python script by typing the command in terminal emulator. The problem is that although I use the full path for python the following error appears: link_image[1997]: failed to link ./python CANNOT LINK EXECUTABLE. I tried to add environment variables in ./~bashrc but I didn't make it. Any idea ? OK it is solved. I followed these steps ( http://code.google.com/p/python-for-android/wiki/RunPythonFromShell ) but first I had to put the file standalone_python.sh in /data/ because in sdcard I had no permission to execute. And finally

How to make a shell script run in Mac when double clicking it?

旧街凉风 提交于 2019-12-04 04:31:39
I have created a shell script to run a jar file in Mac : #!/bin/sh java -Xmx512m -jar test.jar; I have renamed this script " app.command " to run directly when double clicking it. And i have applied " chmod +x " command to it to have executable permissions. Now when double clicking this script, i get " Unable to access jarfile test.jar " while when running this script through Terminal, the jar runs fine ! Anyone can help me how to make this script run when double click it in Mac ? If you run from a terminal, you have a working directory set, and this may not be the case if you double-click it.

Creating a batch file, for simple javac and java command execution

天涯浪子 提交于 2019-12-04 03:41:53
It is a really simple thing but I cannot get my head around it. I have looked at plenty of StackOverFlow post and as well as on internet. My goal is to create a .bat which will open cmd and execute my Main.java into command prompt. Easy isn't it, but I have got confused about how? Below I am writing steps which my batch file should perform open cmd javac Main.java java Main My file will reside next to all my .java so I am assuming I don't need to give explicit path. My understanding so far by research: open text editor write a code to open cmd(Which I am not sure how) echo javac Main.java

ImportError: cannot import name Publisher

跟風遠走 提交于 2019-12-04 03:04:25
I succesfully created an executable version (Py2exe, Pyinstaller) of my application. When I try to run the app from .exe, I get an error as follows in the log file: Traceback (most recent call last): File "CreateAS.pyw", line 8, in <module> ImportError: cannot import name Publisher I am really stuck in this part. Could you help me out? Thanks Casey I'm guessing that you are using a version of wxPython that is >= 2.8.11.0 ? If so, the wx.lib.pubsub package has changed. This page describes the changes. There is also a thread on the wxPython mailing list here that talks about this. To make this

making executable file from a java project using NetBeans [duplicate]

时光怂恿深爱的人放手 提交于 2019-12-04 01:50:54
问题 This question already has an answer here : creating an executable jar file with ant which includes the build.xml file (1 answer) Closed 6 years ago . i have created a java project in NetBeans. now i want to make an executable file out of it.that can be executed (run) in other computers that have JDK or JRE installed but don't have NetBeans or any other Java IDE installed.how can i do such thing using NetBeans??? 回答1: Do you mean compile it to JAR? Netbeans does that automatically, just do

How important is it to digitally sign our executables?

不羁的心 提交于 2019-12-04 00:45:13
We produce a content management system. It's a database-based system, used only by businesses and organizations, and never downloadable from the Internet. That is, it's not the kind of software someone might stumble upon and wonder what it is and whether it's safe to run. Over the 20+ years our system is being sold, its executables have never been digitally signed. Is it time for us to start signing them? For starters, I can think of a few pros and cons: Pro: If using Verisign certificates, Windows Error Reporting can be used Pro: When Windows Vista and Windows 7 show one of those annoying UAC