Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Module
- class python_module_class:
- def hello(string_1):
- print(string_1)
- def rand_function():
- import os
- rand_function_variable = os.getcwd()
- print(rand_function_variable)
- ------------------------------------------
- #Script that imports
- import pythonmodule #To import you have to put this module/script in python33/lib or in -
- #local scope to the script that is importing it.
- pythonmodule.python_module_class.hello("Hello World!") #Module.class.function(argument)
- from pythonmodule import *
- python_module_class.rand_function()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement