diff --git a/CueMaker.py b/CueMaker.py index 0bc42991..4a8fcebb 100755 --- a/CueMaker.py +++ b/CueMaker.py @@ -30,6 +30,7 @@ from urllib.request import urlopen from urllib.parse import quote import configparser +import platform #Stats to display at the end m3uWriteCounter = 0 @@ -251,7 +252,13 @@ def createM3u(cueFiles): scriptDirectory = os.path.dirname(os.path.realpath(__file__)) + "/" configParser = configparser.RawConfigParser() - configFilePath = scriptDirectory + r'links.cfg' + + #Windows uses local folder for the links.cfg + if platform.system() == "Windows": + configFilePath = "links.cfg" + else: + configFilePath = "/usr/share/cuemaker/links.cfg" + configParser.read(configFilePath) parser = argparse.ArgumentParser(description="Original .cue file fetcher for game roms and .m3u creator.", prog="cuemaker") diff --git a/README.md b/README.md index 0cdd8498..200c174e 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ This program will work with the following extensions: Using this program is really simple. I'm using the argparse library, so you can pass the -h flag for usage instructions. Alternatively, you can see the output of the command here: ``` -usage: cuemaker [-h] [-r] [-g] [-m] {playstation,playstation2,saturn} directory +usage: cuemaker [-h] [-r] [-g] [-m] {playstation,playstation2,saturn,3do} directory Original .cue file fetcher for game roms and .m3u creator.