executable

How can I make a Python script standalone executable to run without ANY dependency?

How can I make a Python script standalone executable to run without ANY dependency? Question: I’m building a Python application and don’t want to force my clients to install Python and modules. So, is there a way to compile a Python script to be a standalone executable? Asked By: Jeff || Source Answers: You may …

Total answers: 19

Running an outside program (executable) in Python?

Running an outside program (executable) in Python? Question: I just started working on Python, and I have been trying to run an outside executable from Python. I have an executable for a program written in Fortran. Let’s say the name for the executable is flow.exe. And my executable is located in C:Documents and Settingsflow_model. I …

Total answers: 15

Is there a Perl equivalent to Python's `if __name__ == '__main__'`?

Is there a Perl equivalent to Python's `if __name__ == '__main__'`? Question: Is there a way to determine if the current file is the one being executed in Perl source? In Python we do this with the following construct: if __name__ == ‘__main__’: # This file is being executed. raise NotImplementedError I can hack something …

Total answers: 3

Determining application path in a Python EXE generated by pyInstaller

Determining application path in a Python EXE generated by pyInstaller Question: I have an application that resides in a single .py file. I’ve been able to get pyInstaller to bundle it successfully into an EXE for Windows. The problem is, the application requires a .cfg file that always sits directly beside the application in the …

Total answers: 8