anyone have guide how to upload python script. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

anyone have guide how to upload python script.

i have OS kali linux machine with python3. iam do project to do regedit change on windows os. the project come with 2 Extrnal module. how i can execute this to windows has tool is do this. i am try execute in kali linux machine my script on cli is say no found module but when i run on pycharm is executed and work.

18th May 2019, 8:57 AM
Ariel Shenker
Ariel Shenker - avatar
5 Answers
+ 1
ive got external module and i am sure i cant run them on different OS. i would like to know how i can make it work with the external module on other OS
18th May 2019, 1:51 PM
Ariel Shenker
Ariel Shenker - avatar
+ 1
I'm not sure about the external modules (are specifically for Linux or can be used on Windows as well?) but hope the following can help. First, organize existing files correctly. Place all of them in the same parent directory. This directory should also contain a file called "__init__.py", which can be blank but must be present. This directory goes into another directory containing the "README.txt" and "LICENSE.txt", and "setup.py" files. For example: YourRegeditSript/ LICENSE.txt README.txt setup.py yourregeditscript/ __init__.py yourregeditscript.py yourregeditscript2.py Next you have to write the "setup.py": --------------------------------------------------- from distutils.core import setup setup( name='YourRegeditSript', version='1.0', packages=['yourregeditscript',], license='MIT', long_description=open('README.txt').read(), ) --------------------------------------------------- After creating the setup.py file use the command line to create a binary distribution. - python setup.py bdist_wininst [Windows] - python setup.py bdist [Linux] Finally, install a package with "python setup.py install" (To build a source distribution, use the command line to navigate to the directory containing setup.py, and run the command "python setup.py sdist")
18th May 2019, 2:12 PM
mecmarco
mecmarco - avatar
0
Do you want to run your Python script on Windows or on Linux?
18th May 2019, 1:33 PM
mecmarco
mecmarco - avatar
0
i made it from linux but i would like to run it on windows
18th May 2019, 1:40 PM
Ariel Shenker
Ariel Shenker - avatar
0
awsome man thx i try it
18th May 2019, 2:26 PM
Ariel Shenker
Ariel Shenker - avatar