trentm / go-tool

Automatically exported from code.google.com/p/go-tool
Other
10 stars 8 forks source link

Python traceback when switching *from* a non-existing directory #9

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
sridharr@triple:/tmp/nonexisting$ rm -rf /tmp/nonexisting/
sridharr@triple:/tmp/nonexisting$ go nightly
Traceback (most recent call last):
  File "/usr/lib/python2.6/runpy.py", line 104, in _run_module_as_main
    loader, code, fname = _get_module_details(mod_name)
  File "/usr/lib/python2.6/runpy.py", line 79, in _get_module_details
    loader = get_loader(mod_name)
  File "/usr/lib/python2.6/pkgutil.py", line 456, in get_loader
    return find_loader(fullname)
  File "/usr/lib/python2.6/pkgutil.py", line 467, in find_loader
    loader = importer.find_module(fullname)
  File "/usr/lib/python2.6/pkgutil.py", line 184, in find_module
    path = [os.path.realpath(self.path)]
  File "/usr/lib/python2.6/posixpath.py", line 365, in realpath
    return abspath(filename)
  File "/usr/lib/python2.6/posixpath.py", line 338, in abspath
    path = join(os.getcwd(), path)
OSError: [Errno 2] No such file or directory
sridharr@triple:~/as/apy/branches/nightly$

Original issue reported on code.google.com by Sridhar....@gmail.com on 18 Dec 2009 at 10:10