2

I have seven python scripts

import nmapper as nmap
import pscan as scan
..
..
etc

How it would be possible to make one single python (.pyc) file of all these 7 modules Note: Whatever I I will import into my 8th script, all I have written.

1
  • 7
    Why do they all need to be in one pyc? Commented May 29, 2017 at 21:35

1 Answer 1

1

You can put all the pyc files in a .zip file and rename the extension .pyc.

The zip needs to also contain a file __main__.py.

See What is __main__.py? for more details.

Sign up to request clarification or add additional context in comments.

2 Comments

and sir what about .exe extension
That's a different question, better to ask the whole of Stack Overflow, not just me. If you search, you'll find, e.g.How can I make an EXE file from a Python program?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.