How pfreeze works

Hello ! I want to ship my python code in a nice exe file without using the p3d system, so I’d like to do it with pfreeze.
Here’s what I did :

File : hello.py

import os
print("hello world")
os.system("pause")

Command :
ppython -m direct.showutil.pfreeze -o hello.exe hello

It compiles great but when I start my app, it says : Fatal python error: main not frozen, then it crashes

How can I fix that?