Changeset 07fdf203 in mainline for contrib/arch/hadlbppp.py
- Timestamp:
- 2009-09-11T15:46:20Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e8e2ae1
- Parents:
- ac2c2ea7
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
contrib/arch/hadlbppp.py
rac2c2ea7 r07fdf203 28 28 # 29 29 """ 30 HelenOS Behavior Protocols preprocessor30 HelenOS Architecture Description Language and Behavior Protocols preprocessor 31 31 """ 32 32 … … 141 141 inf.close() 142 142 143 def recursion(root, out f, level):143 def recursion(root, output, level): 144 144 "Recursive directory walk" 145 145 … … 161 161 162 162 path = os.path.abspath(sys.argv[1]) 163 if ( os.path.isdir(path)):164 print "<OUTPUT> is an existingdirectory"163 if (not os.path.isdir(path)): 164 print "<OUTPUT> is not a directory" 165 165 return 166 166 167 outf = file(path, "w") 168 recursion(".", outf, 0) 169 outf.close() 167 recursion(".", path, 0) 170 168 171 169 if __name__ == '__main__':
Note:
See TracChangeset
for help on using the changeset viewer.