Exemple #1
0
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

import os
import sys
import cherrypy
from launch import Launch

"""
if hasattr(sys, "frozen"):
    cwd = os.path.dirname(os.path.abspath(unicode(sys.executable, sys.getfilesystemencoding())))
else:
    cwd = os.path.dirname(os.path.abspath(__file__))
sys.path.append(cwd)
"""

if __name__ == '__main__':
    if os.name == "posix":
        launchyc = Launch()
        launchyc.handle_args()
        
    elif os.name == "nt":
        #importing here so that if the user isnt running windows
        #they wont get an import error from the win only libs
        from yamcatWin import LaunchWin
        
        launchyc = LaunchWin()
        launchyc.handle_args()