Critic my module
Schneider
js at globe.de
Mon Jul 29 06:58:16 EDT 2013
Hi,
lets uses the ls example:
the way you do it now implies, that you search your PATH variable until
it finds a
program called 'ls'. So if we are able to change the PATH variable, and
put out own
'ls' somewhere in the (new) paths, calling you ls() will execute
whatever we want our
own ls' to do.
Second remark: if the behavior of some tools is changed (for examples
with using aliases)
we cannot expect the called tool (in the example: 'ls') to give the same
output on
every system.
this can be avoided (mostly) by ensuring that the right program (in the
example /bin/ls) is called, and not only ls.
bg,
Johannes
On 07/26/2013 12:39 PM, Devyn Collier Johnson wrote:
>
> On 07/25/2013 09:58 AM, Schneider wrote:
>> Hi,
>>
>> nice idea.
>>
>> mybe - for security reasons - you should ensure, that the right tool
>> is called and not some tool put the path with the same name.
>>
>> bg,
>> Johannes
>>
>> Devyn Collier Johnson <devyncjohnson at gmail.com>On Thu 25 Jul 2013
>> 03:24:30 PM CEST, Devyn Collier Johnson wrote:
>>> Aloha Python Users!
>>>
>>> I made a Python3 module that allows users to use certain Linux
>>> shell commands from Python3 more easily than using os.system(),
>>> subprocess.Popen(), or subprocess.getoutput(). This module (once
>>> placed with the other modules) can be used like this
>>>
>>> import boash; boash.ls()
>>>
>>> I attached the module. I plan to release it on the Internet soon,
>>> but feel free to use it now. It is licensed under LGPLv3.
>>>
>>> The name comes from combining "Boa" with "SHell". Notice that the
>>> module's name almost looks like "BASH", a common Linux shell. The Boa
>>> is a constrictor snake. This module makes Unix shells easier to use
>>> via Python3. This brings the system shell closer to the Python shell.
>>>
>>>
>>> Mahalo,
>>>
>>> Devyn Collier Johnson
>>> DevynCJohnson at Gmail.com
>>>
>>>
>>
>>
>>
>> --
>> GLOBE Development GmbH
>> Königsberger Strasse 260
>> 48157 MünsterGLOBE Development GmbH
>> Königsberger Strasse 260
>> 48157 Münster
>> 0251/5205 390
>
> What do you mean by that Schneider?
>
> Mahalo,
>
> Devyn Collier Johnson
> DevynCJohnson at Gmail.com
--
GLOBE Development GmbH
Königsberger Strasse 260
48157 MünsterGLOBE Development GmbH
Königsberger Strasse 260
48157 Münster
0251/5205 390
More information about the Python-list
mailing list