Python imp.PY_RESOURCE Examples
The following are 2
code examples of imp.PY_RESOURCE().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
imp
, or try the search function
.
Example #1
Source File: test_imp.py From ironpython2 with Apache License 2.0 | 5 votes |
def test_flags(self): self.assertEqual(imp.SEARCH_ERROR,0) self.assertEqual(imp.PY_SOURCE,1) self.assertEqual(imp.PY_COMPILED,2) self.assertEqual(imp.C_EXTENSION,3) self.assertEqual(imp.PY_RESOURCE,4) self.assertEqual(imp.PKG_DIRECTORY,5) self.assertEqual(imp.C_BUILTIN,6) self.assertEqual(imp.PY_FROZEN,7) self.assertEqual(imp.PY_CODERESOURCE,8)
Example #2
Source File: test_imp.py From ironpython3 with Apache License 2.0 | 5 votes |
def test_flags(self): self.assertEqual(imp.SEARCH_ERROR,0) self.assertEqual(imp.PY_SOURCE,1) self.assertEqual(imp.PY_COMPILED,2) self.assertEqual(imp.C_EXTENSION,3) self.assertEqual(imp.PY_RESOURCE,4) self.assertEqual(imp.PKG_DIRECTORY,5) self.assertEqual(imp.C_BUILTIN,6) self.assertEqual(imp.PY_FROZEN,7) self.assertEqual(imp.PY_CODERESOURCE,8)