python - How to determine the default executable for a specific file format? -
is there way this, relying on file's extension?
for example: os.system(filepath) opens given filepath using default application, executable's filepath?
no. can write assumptions program, developers handle these formats. doesn't matter extension file has, can used format regardless.
take illustration xml file. if take xml info , set .txt file, or rename .xml file .txt, reading file , parsing info within still render xml formats.
python cross-platform
No comments:
Post a Comment