Skip to content

Commit

Permalink
Support finalised
Browse files Browse the repository at this point in the history
  • Loading branch information
Bipul-Harsh committed Nov 3, 2021
1 parent 8f68c8a commit 9aa8b1b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
15 changes: 11 additions & 4 deletions acc
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,18 @@ USER_NAME = getpass.getuser()

ARGS = ' '.join(sys.argv[1:])
if('--' not in ARGS):
if('-o' in ARGS):
arg_ind = ARGS.index('-o')
ARGS = ARGS[:arg_ind+3]+'\"'+ARGS[arg_ind+3:]+'\"'
if('-o ' in ARGS):
arg_ind = ARGS.find('-o ')
ARGS = ARGS[:arg_ind+3]+'\"'+ARGS[arg_ind+3:]
else:
ARGS = '\"'+ARGS+'\"'
ARGS = '\"'+ARGS
if(' -co ' in ARGS):
arg_ind = ARGS.find(' -co ')
ARGS = ARGS[:arg_ind]+"\""+ARGS[arg_ind:arg_ind+5]+"\""+ARGS[arg_ind+5:]
if(' CO ' in ARGS):
arg_ind = ARGS.find(' CO ')
ARGS = ARGS[:arg_ind]+"\""+ARGS[arg_ind:arg_ind+4]+"\""+ARGS[arg_ind+4:]
ARGS += "\""

if PLATFORM == 'Windows':
APP_PATH = f"C:\\Users\\{USER_NAME}\\.acc"
Expand Down
Binary file modified acc.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
SHOW_VERSION = args.version
SHOW_EDITOR = args.show_editor
SHOW_TEMPLATE = args.show_template
OUTPUT_FILE = args.co
OUTPUT_FILE = '\"'+args.co+'\"'
DO_UNINSTALL = args.uninstall

# Check if the user didnt put anything
Expand Down

0 comments on commit 9aa8b1b

Please sign in to comment.