forked from bitcoin-core/secp256k1
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
183eb29
commit 3529b21
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import os | ||
import os.path | ||
from shutil import copyfile | ||
|
||
|
||
PATH = '/Users/fernando/dev/bitprim/bitprim-consensus/src/clone-abc/' | ||
SOURCE_PATH = '/Users/fernando/dev/bitcoin-abc/src/' | ||
|
||
# result = [os.path.join(dp, f) for dp, dn, filenames in os.walk(PATH) for f in filenames if os.path.splitext(f)[1] == '.txt'] | ||
# result = [os.path.join(dp, f) for dp, dn, filenames in os.walk(PATH) for f in filenames] | ||
result = [(dp, f) for dp, dn, filenames in os.walk(PATH) for f in filenames] | ||
|
||
for dp, f in result: | ||
x = os.path.join(dp, f) | ||
|
||
# print(dp) | ||
# print(x) | ||
# print(x[len(PATH):]) | ||
|
||
source_file = os.path.join(SOURCE_PATH, x[len(PATH):]) | ||
print(source_file) | ||
# print(os.path.isfile(source_file)) | ||
|
||
# print(x) | ||
|
||
|
||
|
||
copyfile(source_file, x) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import re | ||
|
||
with open('conanfile.py', 'r') as content_file: | ||
content = content_file.read() | ||
|
||
linend = re.compile(r'\r') | ||
splited = linend.split(content) | ||
|
||
print(len(splited)) | ||
print(splited) |