Skip to content

Commit

Permalink
Improve file output
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamscached committed Jan 23, 2023
1 parent 5958e5f commit 4f71b87
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion mod/search.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -171,5 +171,10 @@ init python in _fom_wtf_search:
if metadata is not None:
return _file, metadata

# Or else just return the script file
# If .RPY source file exists for this .RPYC, return path to original
# file (.RPY not .RPYC) for user's reading/editing convenience
if os.path.exists(_file[:-1]):
return _file[:-1], None

# Or else return bytecode file
return _file, None

0 comments on commit 4f71b87

Please sign in to comment.