Cant run application as ./myapp.py
Nils Oliver Kröger
NO_Kroeger at gmx.de
Mon Mar 3 08:53:06 EST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Robert,
I have to guesses:
a) The user as which you are trying to run the script is missing the
execute right -> fix by chmod u+x MyApplication.px
b) You did not specify the interpreter -> the first line of your script
should look something like #!/usr/bin/python
If none of this is the problem please post the error message you
(hopefully) get.
hth
Nils
Robert Rawlins schrieb:
> Hello Guys,
>
>
>
> I’ve got an application here which for some reason won’t start using the
> following syntax from the command line:
>
>
>
> Cd /mydirectory
>
> ./MyApplication.py
>
>
>
> I have to run this as a fully qualified python launch such as:
>
>
>
> Cd /mydirectory
>
> python MyApplication.py
>
>
>
> This is a little bit confusing to me as I have other applications which
> run just fine using the ./somthing.py syntax. Is there any reason why
> this doesn’t work?
>
>
>
> Cheers,
>
>
>
> Robert
>
-----BEGIN PGP SIGNATURE-----
iD8DBQFHzALBzvGJy8WEGTcRAtE8AJ4jGFTjZ8G8ayZM2AUcLcArnF5d1QCdH0gj
kCdp0414HwPaIMIDv/SSTZA=
=tF3K
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: NO_Kroeger.vcf
Type: text/x-vcard
Size: 162 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20080303/ba0aaa37/attachment-0001.vcf>
More information about the Python-list
mailing list