Bones' Blog of Stuff About Things

02 Feb

You Could Eat Your Dinner Off It

My development area that is, metaphorically speaking.

I finished pulling all the relevant files into my preferred development project arrangement, the single directory tree. I also juggled some of the underlying Python and C code for handling the map around a bit, creating some form of separation between the core game code and the editor. Python’s packaging isn’t something I’m completely comfortable with yet. It’s very straightforward stuff, apart from the need to have a init.py file in the directory, but I still worry if I’m missing a trick when I do things like appending a relative directory to the sys.path in order to import something. I don’t know what the general consensus on how to handle overall project structure in Python is. It all works fine though, so I’m happy enough for now.

There is still some minor manual labour involved in pushing the code onto the server, as the serverside isn’t exactly the same directory structure and there’s also a need to recompile the C extension for Linux if I happen to change that (whch shouldn’t be often). I’ve told myself that I need to script the deployment a number of times, but it never seems to rise to the top of the priority list. However, that script would need rewriting anyway as the next job on the tidying list is to create separate test and release areas on the webserver, so I can develop without breaking any public version. I don’t really know how best to achieve this though. I suppose I could create a second copy of the Django app in its own package, pointing at a second database instance. My own experience tells me that maintaining two environments and “releasing” little and often will only really be a problem if I screw around with the database, but I need to experiment to see what happens in practice with the tools I’m using.

Outside of the tidying up I want to move over to a completely session based navigation method and then I’m genuinely in a position to get back to the game code itself, probably starting with the database configuration for update timings that I said I’d do about 4 months ago.

Leave a Reply

© 2012 Bones' Blog of Stuff About Things | Entries (RSS) and Comments (RSS)

GPS Reviews and news from GPS Gazettewordpress logo