Skip to content

Commit 3af42f4

Browse files
committed
Only format php in php directory
1 parent 816ba5b commit 3af42f4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

http/php/.postformat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os
22
import re
33

4-
for dir, subdirs, files in os.walk("."):
4+
for dir, subdirs, files in os.walk(os.path.dirname(__file__)):
55
for file in files:
66
if file.endswith(".php___format__.html"):
77
with open(os.path.join(dir, file), "rb") as f:

http/php/.preformat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import os
22

3-
for dir, subdirs, files in os.walk("."):
3+
for dir, subdirs, files in os.walk(os.path.dirname(__file__)):
44
for file in files:
55
if file.endswith(".html") or file.endswith(".php"):
66
os.replace(

0 commit comments

Comments
 (0)