All Samples(1046) | Call(1039) | Derive(0) | Import(7)
getfilesystemencoding() -> string Return the encoding used to convert Unicode filenames in operating system filenames.
src/p/y/pyscard-HEAD/trunk/pyscard/src/smartcard/Examples/wx/readerviewer/readerviewer.py pyscard(Download)
def module_path():
""" This will get us the program's directory,
even if we are frozen using py2exe. From WhereAmI page on py2exe wiki."""
if we_are_frozen():
return os.path.dirname( unicode(sys.executable, sys.getfilesystemencoding( )) )
return os.path.dirname(unicode(__file__, sys.getfilesystemencoding( )))
src/p/y/pyscard-HEAD/trunk/pyscard/src/smartcard/Examples/wx/cardmonitor/cardmonitor.py pyscard(Download)
def module_path():
""" This will get us the program's directory,
even if we are frozen using py2exe. From WhereAmI page on py2exe wiki."""
if we_are_frozen():
return os.path.dirname( unicode(sys.executable, sys.getfilesystemencoding( )) )
return os.path.dirname(unicode(__file__, sys.getfilesystemencoding( )))
src/p/y/pyscard-HEAD/trunk/pyscard/src/smartcard/Examples/wx/apdumanager/apdumanager.py pyscard(Download)
def module_path():
""" This will get us the program's directory,
even if we are frozen using py2exe. From WhereAmI page on py2exe wiki."""
if we_are_frozen():
return os.path.dirname( unicode(sys.executable, sys.getfilesystemencoding( )) )
return os.path.dirname(unicode(__file__, sys.getfilesystemencoding( )))
src/c/h/changingsong-HEAD/trunk/samples/xml_parser/xpath/benchmark.py changingsong(Download)
def handle_args():
# file system encoding is useful for converting CLI arguments
fs_enc = sys.getfilesystemencoding()
# Correct argument
if len(argv) < 2:
print "usage: ./%s folderwithsongs" % argv[0]
return None
src/c/h/changingsong-HEAD/trunk/samples/xml_parser/sax/benchmark.py changingsong(Download)
def handle_args():
# file system encoding is useful for converting CLI arguments
fs_enc = sys.getfilesystemencoding()
# Correct argument
if len(argv) < 2:
print "usage: ./%s folderwithsongs" % argv[0]
return None
src/c/h/changingsong-HEAD/trunk/samples/xml_parser/qtxml_sax/benchmark.py changingsong(Download)
def handle_args():
# file system encoding is useful for converting CLI arguments
fs_enc = sys.getfilesystemencoding()
# Correct argument
if len(argv) < 2:
print "usage: ./%s folderwithsongs" % argv[0]
return None
src/c/h/changingsong-HEAD/trunk/samples/xml_parser/qtxml_dom/benchmark.py changingsong(Download)
def handle_args():
# file system encoding is useful for converting CLI arguments
fs_enc = sys.getfilesystemencoding()
# Correct argument
if len(argv) < 2:
print "usage: ./%s folderwithsongs" % argv[0]
return None
src/c/h/changingsong-HEAD/trunk/samples/xml_parser/minidom/benchmark.py changingsong(Download)
def handle_args():
# file system encoding is useful for converting CLI arguments
fs_enc = sys.getfilesystemencoding()
# Correct argument
if len(argv) < 2:
print "usage: ./%s folderwithsongs" % argv[0]
return None
src/c/h/changingsong-HEAD/trunk/samples/xml_parser/lxml_dict/benchmark.py changingsong(Download)
def handle_args():
# file system encoding is useful for converting CLI arguments
fs_enc = sys.getfilesystemencoding()
# Correct argument
if len(argv) < 2:
print "usage: ./%s folderwithsongs" % argv[0]
return None
src/c/h/changingsong-HEAD/trunk/samples/xml_parser/lxml/benchmark.py changingsong(Download)
def handle_args():
# file system encoding is useful for converting CLI arguments
fs_enc = sys.getfilesystemencoding()
# Correct argument
if len(argv) < 2:
print "usage: ./%s folderwithsongs" % argv[0]
return None
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 Next