Conditions | 6 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | #!/usr/bin/env python |
||
18 | |||
19 | def _scripts(path): |
||
20 | listdir = os.listdir(path) |
||
21 | for l in listdir: |
||
22 | if not valid_script_name(l): |
||
23 | continue |
||
24 | dst = os.path.join("/usr/local/bin/%s" % l) |
||
25 | if os.path.exists(dst) and not os.path.isfile(dst): |
||
26 | raise OSError("ERROR: %s EXISTS and NOT FILE" % dst) |
||
27 | fullpath = os.path.join(path, l) |
||
28 | if os.path.isfile(fullpath): |
||
29 | yield os.path.join(folder, l) |
||
43 |