[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Compiling/running as '.exe.

Posted on 2004-09-03
4
Medium Priority
?
234 Views
Last Modified: 2010-04-16
My Visual Basic application can run other executables by calling shell('filename') - if I try putting a '.py' filename in the brackets it won't have it, probably because it wants an executable file. Can I run a python file through an .exe file, such as "something.exe /myfile.py"? Or can I compile my Python source to an '.exe' of its own. Sorry for being lazy, but I'm a bit snowed under right now!
0
Comment
Question by:mi5
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 36

Expert Comment

by:Zyloch
ID: 11971863
Hi

Try having this:

shell("C:\path\to\python\python.exe something.py"

Regards,
Zyloch
0
 
LVL 36

Accepted Solution

by:
Zyloch earned 240 total points
ID: 11971866
Oops forgot the closing bracket. Basically, it's like this:

shell("path/to/python.exe path/to/yourscript.py");

where it's separated by a space.

Regards
0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will show the steps for installing Python on Ubuntu Operating System. I have created a virtual machine with Ubuntu Operating system 8.10 and this installing process also works with upgraded version of Ubuntu OS. For installing Py…
Introduction On September 29, 2012, the Python 3.3.0 was released; nothing extremely unexpected,  yet another, better version of Python. But, if you work in Microsoft Windows, you should notice that the Python Launcher for Windows was introduced wi…
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
Suggested Courses

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question