Skip to content

Commit

Permalink
move to another module in same directory
Browse files Browse the repository at this point in the history
  • Loading branch information
dragondive committed Mar 14, 2023
1 parent 95c9cbd commit 0455423
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 7 additions & 1 deletion python/modules/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
print("Hello World")
import message_provider

print(message_provider.get_message())
print(type(message_provider))
print(dir(message_provider))

# PS C:\WORK\dragondive\heavens-arena\python\modules> python main.py
# Hello World
# <class 'module'>
# ['__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__spec__', 'get_message']
2 changes: 2 additions & 0 deletions python/modules/message_provider.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def get_message():
return "Hello World"

0 comments on commit 0455423

Please sign in to comment.