The following forum message was posted by bsnahrwold at http://sourceforge.net/projects/pydev/forums/forum/293649/topic/4429027:
Aptana Studio 3 configured for Jython 2.2.1 instead of the latest version, due to another dependency. The following code: [b]import sys if __name__ == '__main__': print('dir(sys):') print(dir(sys)) print('sys.registry["python.path"]:') print(sys.registry["python.path"]) [/b] produces the result: [b]dir(sys): ['JYTHON_JAR', '__delattr__', '__dict__', '__displayhook__', '__excepthook__', '__findattr__', '__new__', '__rawdir__', '__setattr__', '__stderr__', '__stdin__', '__stdout__', '_getframe', 'add_classdir', 'add_extdir', 'add_package', 'argv', 'builtin_module_names', 'builtins', 'byteorder', 'cachedir', 'classLoader', 'copyright', 'defaultencoding', 'determinePlatform', 'displayhook', 'exc_info', 'excepthook', 'exec_prefix', 'executable', 'exit', 'getBaseProperties', 'getClassLoader', 'getdefaultencoding', 'getrecursionlimit', 'hexversion', 'initialize', 'isPackageCacheEnabled', 'last_traceback', 'last_type', 'last_value', 'maxint', 'maxunicode', 'meta_path', 'minint', 'modules', 'packageManager', 'path', 'path_hooks', 'path_importer_cache', 'platform', 'prefix', 'profile', 'profilefunc', 'ps1', 'ps2', 'recursionlimit', 'registry', 'setClassLoader', 'setprofile', 'setrecursionlimit', 'settrace', 'stderr', 'stdin', 'stdout', 'toString', 'trace', 'tracefunc', 'version', 'version_info', 'warnoptions'] sys.registry["python.path"]: None[/b] Problems tab lists: [b]"Undefined variable from import: registry"[/b] When I run this from native Jython 2.2.1 I get the python.path expected. I'm new to Eclipse/PyDev in Aptana. Does anyone know why I can't resolve registry, even though it shows in the dir() statement? Thanks ------------------------------------------------------------------------------ Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar _______________________________________________ Pydev-users mailing list Pydev-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pydev-users