Re: [Tutor] py_compile and chmod +x

2008-12-19 Thread Emad Nawfal (عماد نوفل)
Thank you so much. This has been very helpful. On Fri, Dec 19, 2008 at 12:21 PM, Andreas Kostyrka wrote: > Am Fri, 19 Dec 2008 09:01:24 -0500 > schrieb "Emad Nawfal (عماد نوفل)" : > > You are not supposed to compile the main script. > > pyc files are automatically generated when you import the py

Re: [Tutor] py_compile and chmod +x

2008-12-19 Thread Emad Nawfal (عماد نوفل)
Thank you so much everybody. I was just curious. This has been very useful. On Fri, Dec 19, 2008 at 12:21 PM, Andreas Kostyrka wrote: > Am Fri, 19 Dec 2008 09:01:24 -0500 > schrieb "Emad Nawfal (عماد نوفل)" : > > You are not supposed to compile the main script. > > pyc files are automatically gen

Re: [Tutor] py_compile and chmod +x

2008-12-19 Thread Andreas Kostyrka
Am Fri, 19 Dec 2008 09:01:24 -0500 schrieb "Emad Nawfal (عماد نوفل)" : You are not supposed to compile the main script. pyc files are automatically generated when you import the py file (but not execute it), if you are allowed to write them beside the py file. When a pyc file exists, and it's ne

Re: [Tutor] py_compile and chmod +x

2008-12-19 Thread bob gailer
Emad Nawfal (عماد نوفل) wrote: Hi Tutors, #! /usr/bin/env python print "Hello Tutors" I have this script saved as hello.py. Why can I execute it, but not the compiled version? or am I doing something wrong? Just curious. Any help appreciated. There are 2 issues here. 1 - The shell inspect

[Tutor] py_compile and chmod +x

2008-12-19 Thread Emad Nawfal (عماد نوفل)
Hi Tutors, #! /usr/bin/env python print "Hello Tutors" I have this script saved as hello.py. Why can I execute it, but not the compiled version? or am I doing something wrong? Just curious. Any help appreciated. For example : e...@emad-laptop:~/Desktop/Programming/Haskell$ chmod +x hello.py