Python app at startup!

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • SMALLp

    Python app at startup!

    Hy. I create simple application. Yust an windows and "compile" it with
    py2exe. I add registry value
    reg add HKEY_LOCAL_MACH INE\SOFTWARE\Mi crosoft\Windows \CurrentVersion \Run /v
    MyApp /t REG_SZ /d C:\myapp.exe /f'

    And it wont start. When i use console instead od window in py2exe i get
    console opend but it closes.

    Help please!


  • Larry Bates

    #2
    Re: Python app at startup!

    SMALLp wrote:
    Hy. I create simple application. Yust an windows and "compile" it with
    py2exe. I add registry value
    reg add HKEY_LOCAL_MACH INE\SOFTWARE\Mi crosoft\Windows \CurrentVersion \Run /v
    MyApp /t REG_SZ /d C:\myapp.exe /f'
    >
    And it wont start. When i use console instead od window in py2exe i get
    console opend but it closes.
    >
    Help please!
    >
    >
    There is a single quote at the end of your string but no matching quote at the
    beginning.

    -Larry

    Comment

    • dave_mikesell@fastmail.fm

      #3
      Re: Python app at startup!

      On Feb 28, 5:07 pm, "SMALLp" <po...@email. t-com.hrwrote:
      Hy. I create simple application. Yust an windows and "compile" it with
      py2exe. I add registry value
      reg add HKEY_LOCAL_MACH INE\SOFTWARE\Mi crosoft\Windows \CurrentVersion \Run /v
      MyApp /t REG_SZ /d C:\myapp.exe /f'
      >
      And it wont start. When i use console instead od window in py2exe i get
      console opend but it closes.
      Does it do the same thing when you run it with the Python interpreter?

      Comment

      • SMALLp

        #4
        Re: Python app at startup!

        dave_mikesell@f astmail.fm wrote:
        On Feb 28, 5:07 pm, "SMALLp" <po...@email. t-com.hrwrote:
        >Hy. I create simple application. Yust an windows and "compile" it with
        >py2exe. I add registry value
        >reg add HKEY_LOCAL_MACH INE\SOFTWARE\Mi crosoft\Windows \CurrentVersion \Run /v
        >MyApp /t REG_SZ /d C:\myapp.exe /f'
        >>
        >And it wont start. When i use console instead od window in py2exe i get
        >console opend but it closes.
        >
        Does it do the same thing when you run it with the Python interpreter?
        >
        No. The programm works fine! In interupter and when i "compile" it.

        Comment

        • dave_mikesell@fastmail.fm

          #5
          Re: Python app at startup!

          On Feb 29, 7:21 am, SMALLp <po...@mzm.hrwr ote:
          dave_mikes...@f astmail.fm wrote:
          >
          Does it do the same thing when you run it with the Python interpreter?
          >
          No. The programm works fine! In interupter and when i "compile" it.
          My guess is that you're not including something in the .exe that you
          need. What does your py2exe command line and setup.py look like?

          Comment

          • SMALLp

            #6
            Re: Python app at startup!

            Program:
            <code prog.py>
            import os
            import wx

            app = wx.App()
            frame = wx.Frame(None, -1, "MyFrame")
            frame.Show()

            app.MainLoop()
            </code>

            python.exe setup.py py2exe
            <code>
            from distutils.core import setup
            import py2exe

            setup(windows=['prog.py'])
            </code>

            <dave_mikesell@ fastmail.fmwrot e in message
            news:e11b4e83-8eae-4d4c-bd29-3f2bd5d8daa5@41 g2000hsc.google groups.com...
            On Feb 29, 7:21 am, SMALLp <po...@mzm.hrwr ote:
            >dave_mikes...@ fastmail.fm wrote:
            >
            >>
            Does it do the same thing when you run it with the Python interpreter?
            >>
            >No. The programm works fine! In interupter and when i "compile" it.
            >
            My guess is that you're not including something in the .exe that you
            need. What does your py2exe command line and setup.py look like?
            >

            Comment

            Working...