示例#1
0
    def test_abs_paths_cached_None(self):
        """Test for __cached__ is None.

        Regarding to PEP 3147, __cached__ can be None.

        See also: https://bugs.python.org/issue30167
        """
        sys.modules['test'].__cached__ = None
        site.abs_paths()
        self.assertIsNone(sys.modules['test'].__cached__)
示例#2
0
    def test_abs_paths_cached_None(self):
        """Test for __cached__ is None.

        Regarding to PEP 3147, __cached__ can be None.

        See also: https://bugs.python.org/issue30167
        """
        sys.modules['test'].__cached__ = None
        site.abs_paths()
        self.assertIsNone(sys.modules['test'].__cached__)
print("JAVA_HOM  : ",javahome,'\n')

# ------------------------------------------------- #






# ------------------------------------------------- #

# Example to use site package

userBase    =   site.getuserbase()
absPath     =   site.abs_paths()

print("USER BASE   : ",userBase,'\n')

print("ABSOLUTE PATHS   : ",absPath,'\n')

# ------------------------------------------------- #






# ------------------------------------------------- #
# Example to use for loop
示例#4
0
文件: nodes.py 项目: xxoolm/Ryven
 def update_event(self, inp=-1):
     self.set_output_val(0, site.abs_paths())