Below example demonstrates the problem that I am facing while generating 
standalone executable on windows7. The Structure of the scripts are :-

test.py
##############
import sys
import os
lib_path = os.path.abspath('./bin')
sys.path.append(lib_path)
import testmodule as tm

tm.testfunction()

./bin/testmodule.py
##############
def testfunction():
    print "Hello World !"

Building Exe:
###############
pyinstaller.py --onefile "<path-to-test.py>

On executing the standalone exe, it reports error "ImportError : No module 
named testmodule"

How can I generate the exe without modifying my source code structure?

-Sarbjit



-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to