mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
Changed runs of 8 spaces to tab -- to satisfy the tab nanny.
This commit is contained in:
parent
068ad97330
commit
e614fb12a0
1 changed files with 7 additions and 7 deletions
|
|
@ -44,12 +44,12 @@ def fcmp(x, y): # fuzzy comparison function
|
|||
|
||||
def findfile(file, here=__file__):
|
||||
import os
|
||||
if os.path.isabs(file):
|
||||
if os.path.isabs(file):
|
||||
return file
|
||||
import sys
|
||||
path = sys.path
|
||||
import sys
|
||||
path = sys.path
|
||||
path = [os.path.dirname(here)] + path
|
||||
for dn in path:
|
||||
fn = os.path.join(dn, file)
|
||||
if os.path.exists(fn): return fn
|
||||
return file
|
||||
for dn in path:
|
||||
fn = os.path.join(dn, file)
|
||||
if os.path.exists(fn): return fn
|
||||
return file
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue