kivutar / tethical

A tactical RPG engine with online gaming support.
http://tethical.kivutar.me
91 stars 35 forks source link

Shared code between client and server #15

Open CoderBrandon opened 12 years ago

CoderBrandon commented 12 years ago

I noticed there was some duplicated code in both client and server and it would probably help to centralize those where possible to avoid having to maintain two sets of code. What's the best way to do this in python?

kivutar commented 12 years ago

The python way is to put them in a module, adding the path of this module to the python path system wide variable, and importing this module in both client and server.

However, I don't know how panda3d packaging tools will handle this when creating the p3d file.

We can also try to solve this using a symbolic link. Here also I don't know how panda3d will behave during the packaging.