Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyongju committed Apr 28, 2023
1 parent 194ad3c commit 4578775
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,11 @@
![img.png](img.png)


### How to generate executable
```commandline
pyinstaller --onefile run.py
```

### Please contact me for any bugs.


Binary file modified dist/run.exe
Binary file not shown.
6 changes: 3 additions & 3 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ def main(argv):
# print('counter:' + str(count))
game_name = df['game_name'][df['rom_name'].eq(actual_filename)].tolist()[0]
# print(game_name)
exclusions = ['/', ':', '-', '?', '*']
exclusions = ['/', ':', '-', '?', '*','\'']
new_game_name = ''.join(ch for ch in game_name if ch not in exclusions)
print(new_game_name)
dst_name = new_game_name
dst_name = new_game_name[:25]


try:
os.mkdir(f'{game_folder_name}/{dst_name}')
Expand Down

0 comments on commit 4578775

Please sign in to comment.