[PythonCE] Command line
Luke Dunstan
coder_infidel at hotmail.com
Thu Jun 29 14:43:50 CEST 2006
It should work with spaces if you quote it properly (this is true of any operating system), e.g.
python "\my documents\python\test.py"
Luke
----- Original Message -----
From: ahmad adel rldardiry
To: Luke Dunstan
Sent: Thursday, June 29, 2006 1:48 AM
Subject: Re: [PythonCE] Command line
السلام عليكم ورحمة الله وبركاته
May peace and Allah Mercy and Blessings be upon you,
Thanks a lot Luke.
After some tests, it worked fine, also with the "/nopcceshell" flag (very cool).
It seems that python does not accept paths with spaces though:
python.exe \Program Files\ ...
So now, if I wanted to distribute pythonce with a software I made (for using as command line) what license should I include or even do I have the right to?
Thanks again.
لا إله إلا الله
There is no god but Allah
أحمد
Ahmad
http://www.shagarah.com
http://www.newhive.com
----- Original Message -----
From: Luke Dunstan
To: pythonce at python.org
Sent: Wednesday, June 28, 2006 4:36 PM
Subject: Re: [PythonCE] Command line
Hi,
You will need to pass the script name as an absolute path. See also: http://pythonce.sourceforge.net/Wikka/UsingPythonCE
Luke
----- Original Message -----
From: ahmad adel rldardiry
To: Luke Dunstan
Sent: Wednesday, June 28, 2006 8:09 PM
Subject: Re: [PythonCE] Command line
السلام عليكم ورحمة الله وبركاته
May peace and Allah Mercy and Blessings be upon you,
Thanks for replying, I thought nobody will!
Yes I have tested it in the CMD (www.symbolictools.de)
like this:
cd program files\python24\
start python.exe t.py
in t.py:
f=file('pp.txt','w')
f.write('Besmellah')
f.close()
it gaves this error:
Traceback (innermost last):
<NULL>: <NULL>
Also I want to be able to hide the file (hidden startup) is this possible?
Thanks
لا إله إلا الله
There is no god but Allah
أحمد
Ahmad
http://www.shagarah.com
http://www.newhive.com
----- Original Message -----
From: Luke Dunstan
To: pythonce at python.org
Sent: Wednesday, June 28, 2006 2:51 PM
Subject: Re: [PythonCE] Command line
Hi,
Yes, you can run Python scripts by passing them on the command line to python.exe. This is what happens when you double-click a script. Are you having trouble in some way?
Luke
----- Original Message -----
From: ahmad adel rldardiry
To: PythonCE at python.org
Sent: Sunday, June 25, 2006 7:00 PM
Subject: [PythonCE] Command line
السلام عليكم ورحمة الله وبركاته
May peace and Allah Mercy and Blessings be upon you,
Can I execute a .py as a commandline parameter to pythonce, giving that python is installed on the device?
eg.
start python.exe t.py (-hidden?)
Thanks
لا إله إلا الله
There is no god but Allah
أحمد
Ahmad
http://www.shagarah.com
http://www.newhive.com
----------------------------------------------------------------------
_______________________________________________
PythonCE mailing list
PythonCE at python.org
http://mail.python.org/mailman/listinfo/pythonce
------------------------------------------------------------------------
_______________________________________________
PythonCE mailing list
PythonCE at python.org
http://mail.python.org/mailman/listinfo/pythonce
----------------------------------------------------------------------------
_______________________________________________
PythonCE mailing list
PythonCE at python.org
http://mail.python.org/mailman/listinfo/pythonce
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/pythonce/attachments/20060629/141258b7/attachment.htm
More information about the PythonCE
mailing list