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 Answers1

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.

Peter Wood
  • 23,859
  • 5
  • 60
  • 99
  • and sir what about **.exe** extension –  May 29 '17 at 22:32
  • That's a different question, better to ask the whole of [so], not just me. If you search, you'll find, e.g.[How can I make an EXE file from a Python program?](https://stackoverflow.com/questions/49146/how-can-i-make-an-exe-file-from-a-python-program) – Peter Wood May 30 '17 at 06:19