• Facebook
  • Twitter
  • Reddit
  • StumbleUpon
  • Digg
  • email

All Samples(14089)  |  Call(0)  |  Derive(0)  |  Import(14089)
Common operations on Posix pathnames.

Instead of importing this module directly, import os and refer to
this module as os.path.  The "os.path" name is an alias for this
module on Posix systems; on other systems (e.g. Mac, Windows),
os.path provides the same operations in a manner specific to that
platform, and is an alias to another module (e.g. macpath, ntpath).

Some of this can actually be useful on non-Posix systems too, e.g.
for manipulation of the pathname component of URLs.

src/e/v/evserver-HEAD/evserver/examples/comet.py   evserver(Download)
import uuid
from pkg_resources import resource_filename
 
import os, os.path, logging
 
log = logging.getLogger(os.path.basename(__file__))
 

src/p/y/pypy3-HEAD/pypy/interpreter/pyparser/test/unittest_samples.py   pypy3(Download)
"""test module for CPython / PyPy nested tuples comparison"""
 
import os, os.path as osp
import sys
from pypy.interpreter.pyparser.pythonutil import python_parse, pypy_parse
from pprint import pprint
from pypy.interpreter.pyparser import grammar

src/b/a/badger-lib-HEAD/packages/Pygments/tests/examplefiles/linecontinuation.py   badger-lib(Download)
    . \
    __str__
 
from os import path
from \
        os \
        import \
        path
 
import os.path as something
 
import \

src/p/y/pypy-HEAD/pypy/interpreter/pyparser/test/unittest_samples.py   pypy(Download)
"""test module for CPython / PyPy nested tuples comparison"""
 
import os, os.path as osp
import sys
from pypy.interpreter.pyparser.pythonutil import python_parse, pypy_parse
from pprint import pprint
from pypy.interpreter.pyparser import grammar

src/n/o/noc-0.5/contrib/src/Pygments/tests/examplefiles/linecontinuation.py   noc(Download)
    . \
    __str__
 
from os import path
from \
        os \
        import \
        path
 
import os.path as something
 
import \

src/p/y/pysys-HEAD/trunk/pysys-examples/internal/testcases/PySys_internal_025/Input/workingdir.py   pysys(Download)
# Print out the process environment
#
import os, os.path, sys, string
 
# entry point for running the script as an executable
if __name__ == "__main__":
	sys.stderr.write("Current working directory is %s\n" % string.replace(os.getcwd(), "\\", "/"))

src/e/v/evserver-HEAD/evserver/examples/staticfiles.py   evserver(Download)
import cgi
import mimetypes
import os
import os.path
 
ROOT='/etc'
 

src/p/y/pysys-HEAD/pysys-examples/internal/testcases/PySys_internal_025/Input/workingdir.py   pysys(Download)
# Print out the process environment
#
import os, os.path, sys, string
 
# entry point for running the script as an executable
if __name__ == "__main__":
	sys.stderr.write("Current working directory is %s\n" % string.replace(os.getcwd(), "\\", "/"))

src/p/y/pyke-HEAD/examples/web_framework/preforked_server.py   pyke(Download)
# THE SOFTWARE.
 
import sys
import os, os.path
import signal
import functools
import wsgiref.simple_server

src/q/u/quickflash-HEAD/branch_tags/octave-swig/QuickFlash-1.0.0-Octave-1.0/examples/omega_analysis/generate_report.py   quickflash(Download)
def main() :
 
    from optparse import OptionParser
    from sys import exit, stderr
    from os import system, path, makedirs
    from glob import glob
 

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next