Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

search for Panda3D directly if not found #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions meshtool/__main__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
import sys
#
# Unfortunate kluge to get to panda3d from old distribution
# this allows meshtool to run on Ubuntu 12.04
#
try:
import panda3d
except:
print >> sys.stderr, 'panda3d not found -- adding to sys.path and trying again'
sys.path.append("/usr/share/panda3d")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you change to single quotes? rest of the library uses single

sys.path.append("/usr/lib64/panda3d")
import panda3d
import argparse
from collections import defaultdict
import meshtool.filters as filters
Expand Down