On Jan 28, 2009, at 3:30 PM, Bob Sysero llc Dev wrote:

> ** PROBLEM *** PROBLEM ***************************** I Had to stop  
> here
>
> The problem I am having is in Ubuntu 8.04 when I click on main.py and
> then select run or run in terminal NO WINDOW is being displayed.  If I
> run the terminal in the HelloWorld Directory I can run the main by
> typing:
>
> python main.py
>
> But for a customer that would not be a option! So what I could do is
> create another script called run Hello World that would have in the
> script:
>
> export PYTHONPATH=$HOME/temp/HelloWorld
> cd $HOME/temp/HelloWorld
> python main.py
>
> My Quiestion is there a simpler way that I can include in this How To?

        main.py should have the following lines at the top:

#!/usr/bin/env python
# -*- coding: utf-8 -*-

Since it is executable, double-clicking it should run it with python  
as expected. I just tried it in KDE using Dolphin, and it ran as  
expected. Is your main.py executable?


-- Ed Leafe




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to