All Samples(152) | Call(149) | Derive(0) | Import(3)
Return an absolute path to the source or compiled file for an object. The idea is for each object to have a unique origin, so this routine normalizes the result as much as possible.
def getabsfile(object, _filename=None):
"""Return an absolute path to the source or compiled file for an object.
The idea is for each object to have a unique origin, so this routine
normalizes the result as much as possible."""
if _filename is None:
_filename = getsourcefile(object) or getfile(object)
return os.path.normcase(os.path.abspath(_filename))
#!/usr/bin/env python import inspect import sys import os.path sys.path[0:0] = [ os.path.join( os.path.dirname( inspect.getabsfile( inspect.currentframe() ) ), '..', '..', '..', 'lib' ) ] sys.path[0:0] = [ os.path.join( os.path.dirname( inspect.getabsfile( inspect.currentframe() ) ), '..' ) ]
src/d/r/dramatis-0.1.1/examples/telephone/sixth/run.py dramatis(Download)
#!/usr/bin/env python import inspect import sys import os.path sys.path[0:0] = [ os.path.join( os.path.dirname( inspect.getabsfile( inspect.currentframe() ) ), '..', '..', '..', 'lib' ) ] sys.path[0:0] = [ os.path.join( os.path.dirname( inspect.getabsfile( inspect.currentframe() ) ), '..' ) ]
src/d/r/dramatis-0.1.1/examples/telephone/seventh/run.py dramatis(Download)
import sys import os.path sys.path[0:0] = [ os.path.join( os.path.dirname( inspect.getabsfile( inspect.currentframe() ) ), '..', '..', '..', 'lib' ) ] sys.path[0:0] = [ os.path.join( os.path.dirname( inspect.getabsfile( inspect.currentframe() ) ), '..' ) ] from logging import warning
src/d/r/dramatis-0.1.1/examples/telephone/second/run.py dramatis(Download)
#!/usr/bin/env python import inspect import sys import os.path sys.path[0:0] = [ os.path.join( os.path.dirname( inspect.getabsfile( inspect.currentframe() ) ), '..', '..', '..', 'lib' ) ] sys.path[0:0] = [ os.path.join( os.path.dirname( inspect.getabsfile( inspect.currentframe() ) ), '..' ) ]
src/d/r/dramatis-0.1.1/examples/telephone/fourth/run.py dramatis(Download)
#!/usr/bin/env python import inspect import sys import os.path sys.path[0:0] = [ os.path.join( os.path.dirname( inspect.getabsfile( inspect.currentframe() ) ), '..', '..', '..', 'lib' ) ] sys.path[0:0] = [ os.path.join( os.path.dirname( inspect.getabsfile( inspect.currentframe() ) ), '..' ) ]
src/d/r/dramatis-0.1.1/examples/telephone/first/run.py dramatis(Download)
#!/usr/bin/env python import inspect import sys import os.path sys.path[0:0] = [ os.path.join( os.path.dirname( inspect.getabsfile( inspect.currentframe() ) ), '..', '..', '..', 'lib' ) ] sys.path[0:0] = [ os.path.join( os.path.dirname( inspect.getabsfile( inspect.currentframe() ) ), '..' ) ]
src/d/r/dramatis-0.1.1/examples/telephone/fifth/run.py dramatis(Download)
#!/usr/bin/env python import inspect import sys import os.path sys.path[0:0] = [ os.path.join( os.path.dirname( inspect.getabsfile( inspect.currentframe() ) ), '..', '..', '..', 'lib' ) ] sys.path[0:0] = [ os.path.join( os.path.dirname( inspect.getabsfile( inspect.currentframe() ) ), '..' ) ]
src/d/r/dramatis-0.1.1/examples/im/single/wxchat.py dramatis(Download)
#!/usr/bin/env python import inspect import sys import os.path sys.path[0:0] = [ os.path.join( os.path.dirname( inspect.getabsfile( inspect.currentframe() ) ), '..', '..', '..', 'lib' ) ]
src/d/r/dramatis-0.1.1/examples/telephone/mangler.py dramatis(Download)
def _words(cls):
try:
return cls._word_list
except:
f = os.path.join( os.path.dirname( inspect.getabsfile( inspect.currentframe() ) ), "3esl.txt" )
f = open(f)
cls._word_list = [ l[0:-1] for l in f ]
src/d/r/dramatis-0.1.1/examples/pingpong/scala.py dramatis(Download)
import sys import os.path sys.path[0:0] = [ os.path.join( os.path.dirname( inspect.getabsfile( inspect.currentframe() ) ), '..', '..', 'lib' ) ] from logging import warning
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 Next