Re: how to mimik a main() function to start a program with entry point?

2007-01-20 Thread Joshua J. Kugler
krishnakant Mane wrote: hello all. I have one simple query and may be that's to stupid to answer but I am not finding the answer any ways. I have a set of modules in my package and out if which one is my actual starting point to my entire program. say for example I have an entire database

how to mimik a main() function to start a program with entry point?

2007-01-19 Thread krishnakant Mane
hello all. I have one simple query and may be that's to stupid to answer but I am not finding the answer any ways. I have a set of modules in my package and out if which one is my actual starting point to my entire program. say for example I have an entire database application ready and I want a

Re: how to mimik a main() function to start a program with entry point?

2007-01-19 Thread sturlamolden
krishnakant Mane wrote: I have a set of modules in my package and out if which one is my actual starting point to my entire program. say for example I have an entire database application ready and I want a main (as in java or c) to initiate the program and may be bring up a login screen and

Re: how to mimik a main() function to start a program with entry point?

2007-01-19 Thread [EMAIL PROTECTED]
def main(): print Hello if __name__ == __main__: main() Simply verify __name__ and run any function from there. This will cause main() to be run if the script is run directly. I haven't used py2exe, so I'm not sure if it still applies. --Kevin krishnakant Mane wrote: hello all. I

Re: how to mimik a main() function to start a program with entry point?

2007-01-19 Thread Roland Puntaier
Hi, From a python module you could use subprocess and start the exe. Normally one must leave it to the OS to load a binary module, because there are certain things done during loading. Nevertheless the location of the entry point is coded in the binary file format (e.g. PE for windows or ELF