9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "peter a. cejchan" <pac@next.gli.cas.cz>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] to Russ Cox (others may read, too ;-) [sorry, long]
Date: Mon,  8 Apr 2002 12:54:48 +0000	[thread overview]
Message-ID: <71652467.0204040558.46a06a67@posting.google.com> (raw)
In-Reply-To: <2ab73cd1648cacbfd32cf6a4d0b4b698@plan9.bell-labs.com>

ooooooooooooooooooooooooops! seems like i've not built the libs at all!!!!! beg 4 a hint howto (sorry. non-techie :(    TX! ++pac.                               rsc@plan9.bell-labs.com (Russ Cox) wrote in message news:<2ab73cd1648cacbfd32cf6a4d0b4b698@plan9.bell-labs.com>...
> Do you have these two files, os.py and plan9.py,
> in /sys/lib/python?
>
> #
> echo os.py
> sed 's/.//' >os.py <<'//GO.SYSIN DD os.py'
> -r"""OS routines for Mac, DOS, NT, or Posix depending on what system we're on.
> -
> -This exports:




> -  - os.pardir is a string representing the parent directory ('..' or '::')



> -  - os.pathsep is the component separator used in $PATH etc


> -


> -only use functions that are defined by all platforms (e.g., unlink









> -






> -    try:

> -    except AttributeError:





> -    curdir = '.'; pardir = '..'; sep = '/'; pathsep = ':'







> -    path = posixpath











> -    from nt import *











> -    del nt










> -        pass





> -    __all__.extend(_get_exports_list(dos))

> -u










> -    import ntpath



> -    import os2

> -    del os2





> -    defpath = ':'

> -    try:









> -    del mac






> -    from ce import *












> -    del ce











> -    import riscospath





> -    del riscos









> -    except ImportError:


> -    dup2 = dup









> -    del plan9




> -












> -



> -def makedirs(name, mode=0777):



> -    Works like mkdir, except that any intermediate path segment (not


> -

> -    head, tail = path.split(name)



> -        makedirs(head, mode)










> -    ignored -- they generally mean that a directory was not empty.






> -    while head and tail:







































> -




> -    current process. """



> -    """execle(file, *args, env)



> -    env = args[-1]



> -    """execlp(file, *args)

> -    Execute the executable file (which is searched for along $PATH)





> -






> -def execvp(file, args):






> -

> -    """execv(file, args, env)







> -__all__.extend(["execl","execle","execlp","execlpe","execvp","execvpe"])




> -        func = execve








> -        apply(func, (file,) + argrest)




> -        envpath = defpath
















> -    for dir in PATH:


> -            apply(func, (fullname,) + argrest)




























































































> -# Supply spawn*() (probably only for Unix)

























































> -    def spawnvp(mode, file, args):
> -        """spawnvp(mode, file, args) -> integer













































































































































































































































































































































































































































































c


  reply	other threads:[~2002-04-08 12:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-03 16:14 Russ Cox
2002-04-08 12:54 ` peter a. cejchan [this message]
2002-04-03 17:23 pac
2002-04-08 14:04 Russ Cox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=71652467.0204040558.46a06a67@posting.google.com \
    --to=pac@next.gli.cas.cz \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).