Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows - "Can't find original path" errors #201

Open
boardwarp opened this issue Dec 27, 2017 · 3 comments
Open

Windows - "Can't find original path" errors #201

boardwarp opened this issue Dec 27, 2017 · 3 comments

Comments

@boardwarp
Copy link

First of all, thanks for this scraper! It's generally working really well for me so far. The one issue I have, is that I can't seem to get it to recognise files that have already been scraped. I've tried setting the rom_path and image_path flags either to "" or to my rom path, "E:\Software\ROMs.Games", but either way it winds up with a "can't find original path":

2017/12/27 09:36:06 Can't find original path: /007 - GoldenEye (Europe).n64
2017/12/27 09:32:38 Can't find original path: ./E:\Software\ROMs.Games\N64/007 - GoldenEye (Europe).n64

The entry in the gamelist.xml looks like this:

  <gameList>
      <game id="5397" source="screenscraper.fr">
          <path>/007 - GoldenEye (Europe).n64</path>
          <name>007 - GoldenEye (Europe)</name>
          <desc>...</desc>
          <image>./D:\Emulators\Scraper\Test_Output\Screenshots/007 - GoldenEye (Europe).jpg</image>
          <rating>0.8</rating>
          <releasedate>19970825T000000</releasedate>
          <developer>Rareware</developer>
          <publisher>Nintendo</publisher>
          <genre>Action / Shooter / Shooter / 1st person</genre>
          <players>4</players>
          <marquee>./path/007 - GoldenEye (Europe)-marquee.jpg</marquee>
      </game>

So it looks as though the cause is some combination of ./ being prepended to the specified path, and a combination of / and \ being used for directories. I'm not sure if this is a problem with the settings I'm using or if it's an issue with the windows version of the program, please help :)

@sselph
Copy link
Owner

sselph commented Jan 2, 2018

If you try using relative paths it may work. I think the absolute paths are throwing it off. "" I think is throwing it off and being interpreted as the root directory and on windows that isn't "/" so it just does something weird. I'll see if I can improve that code to better handle those types of paths.

@boardwarp
Copy link
Author

I replaced the rom_path and image_path params with ".", which got it to work :) No changes were required to any of the other absolute paths. Thanks for your assistance!

@sselph
Copy link
Owner

sselph commented Jan 3, 2018

Cool. I'll keep this open as a reminder to do some more absolute path experiments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants