Skip to content

Commit

Permalink
Fixed an issue with paths in the main file
Browse files Browse the repository at this point in the history
Paths in the main file relative to itself would be relative to the exe when built not the file itself.
  • Loading branch information
gentlegiantJGC committed Mar 21, 2020
1 parent 994a646 commit d8761b4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
7 changes: 0 additions & 7 deletions amulet_map_editor/amulet_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,3 @@ def __init__(self, parent, open_world):
def _show_world_select(self, evt):
self.Disable()
WorldSelectWindow(self._open_world_callback, self.Enable)


if __name__ == "__main__":
app = wx.App()
frame = AmuletMainWindow(None)
app.MainLoop()
config.save()
9 changes: 9 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import wx
from amulet_map_editor.amulet_ui import AmuletMainWindow
from amulet_map_editor import config

if __name__ == "__main__":
app = wx.App()
frame = AmuletMainWindow(None)
app.MainLoop()
config.save()

0 comments on commit d8761b4

Please sign in to comment.