Skip to content

Commit

Permalink
Updated CueMaker for release
Browse files Browse the repository at this point in the history
  • Loading branch information
tralph3 committed Sep 14, 2020
1 parent 80b386e commit e214c3d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion CueMaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit e214c3d

Please sign in to comment.