Skip to content

Instantly share code, notes, and snippets.

@JCash
Last active December 12, 2015 01:19
Show Gist options
  • Save JCash/4690489 to your computer and use it in GitHub Desktop.
Save JCash/4690489 to your computer and use it in GitHub Desktop.
Python API startup
try:
from P4 import P4, P4Exception
p4 = P4()
p4.connect()
print p4.client
except P4Exception, e:
print "P4 Error", str(e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment