setup.py

# relimport.py is a very simple script that tests importing using relative# imports (available in Python 2.5 and up)## Run the build process by running the command 'python setup.py build'## If everything works well you should find a subdirectory in the build# subdirectory that contains the files needed to run the script without Pythonfrom cx_Freeze import setup, Executable
setup(
name = "relimport",
version = "0.1",
description = "Sample cx_Freeze script for relative imports",
executables = [Executable("relimport.py")])