Skip to content

Commit

Permalink
gh
Browse files Browse the repository at this point in the history
  • Loading branch information
krypton-byte committed Oct 22, 2021
1 parent a531e95 commit 4b455e6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions resetup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
arg.add_argument('--version',type=str)
args=arg.parse_args()
if args.version:
new=open('setup.py').read().replace('0.1.6',re.search(r'\/?([0-9A-Za-z\.]+)',args.version).group(1))
with open('setup.py','w') as fil:
print(new)
fil.write(new)
new=open('setup.py').read().replace('0.1.6',re.search(r'\/?([0-9][0-9A-Za-z\.]+)',args.version).group(1))
print(new)
# with open('setup.py','w') as fil:
# print(new)
# fil.write(new)

0 comments on commit 4b455e6

Please sign in to comment.