Lines Matching defs:path
16 def update_license( path, dry_run, show_diff ):
19 path: path of the C++ source file to update.
20 dry_run: if True, just print the path of the file that would be updated,
22 show_diff: if True, print the path of the file that would be modified,
25 with open( path, 'rt' ) as fin:
36 with open( path, 'wb' ) as fout:
38 print('Updated', path)
51 dry_run: if True, just print the path of the file that would be updated,
53 show_diff: if True, print the path of the file that would be modified,
91 import os.path
92 sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))