How about using

import longfilename as sh

Then either access with python way
sh.func("string",10)

Or the name provided in the extend command

func string, 10

Following normal conventions seen in python

import numpy as np

Best

Den 16/05/2013 01.29 skrev "Spencer Bliven" <sbliven@ucsd.edu>:
I have a number of python scripts that I use regularly. I would like to create shortcuts for these in my .pymolrc. For instance,

alias co, color_obj

Unfortunately, aliases cannot take arguments (using MacPyMOL 1.3). Is there a way to create aliases for commands that require arguments? I could modify the cmd.extend() call in each python script, but I'd rather do it from my .pymolrc since some scripts are shared.

Thanks!
-Spencer


------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net