diff --git a/resetup.py b/resetup.py index 14a419f..84e0728 100644 --- a/resetup.py +++ b/resetup.py @@ -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) \ No newline at end of file + 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) \ No newline at end of file