I'm submitting a ...
Current behavior:

Expected behavior:
File should execute no matter what our current directory is.
Please describe the bug in the issue body rather than the issue head!
kindly make the necessary changes so that it can be looked upon :)
although this is not a bug but i think we should do something about this
or atleast update README that we should go to app in order to run the file.
@gabru-md accidentally created issue without main body
Now it is updated.
@nanspro can you please explain what is the bug exactly ?
Or what steps did you carry that led to the bug ? so that we can help :D
when i am present in badgeyay folder i run python3 app/main.py
then it showed error can't open merge_badges.py no such file or directory as shown in attached picture.
the above message was sent before you posted the image. now the issue is clear.
:+1:
@gabru-md i want to work on this.
Can you tell me is this a issue for which i should change code files or just update README with running instructions mentioning especially to move to app folder before running main.py
Please have a look at the following commands
def generate_badges(_zip=False,_pdf=False):
if _zip == True and _pdf == True:
os.system('python merge_badges.py -z -p')
elif _zip == True and _pdf == False:
os.system('python merge_badges.py -z')
else:
os.system('python merge_badges.py -p')
These commands do require one to be in the app folder . Yes! Readme can be updated in this case.
Thanks for pointing that out. :+1:
@nanspro
Thanks!
Or we can find the directory in which main.py is present and then we will find merge_badges.py there instead of present directory
Anyway i would like to work on this.
ok @gabru-md i am working on this then.
@nanspro I still do not think this is a bug. If you still think you can fix this, send a PR!
ok i will try
Flask debugger is causing issues ,i am not able to resolve.
Shall i close this or let someone else try?
@jajodiaraghav @gabru-md
Can you give us the issue being caused ?


Expected output

Debugger is not becoming active i think it's inbuilt property of flask.
@gabru-md
The debugger seems to be running anyway.
But i would suggest you to propose a change in README stating that python main.py must be executed from the app folder within.
Work upon the readme @nanspro !