Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I use the files generated by pack() - move to intranet and use directly #384

Closed
HeliangCN opened this issue May 27, 2022 · 3 comments
Labels

Comments

@HeliangCN
Copy link

Hi @kensoh , May I ask you a few questions?

I used rpa.pack() in rpa/main.py file and generated rpa.py and rpa_python.zip, but I don't know how it works.

  1. How do I use rpa.py and rpa_python.zip* on the target computer.
  2. What objects are packaged? Folder(rpa) or file(main.py)?

The API manual would be better if it were more detailed.

Thank you for reading!

@kensoh
Copy link
Member

kensoh commented May 27, 2022

Hi @HeliangCN oh under API general notes, there is the following link on using the package without Internet. It shows the step by step how to use the rpa.py and rpa_python.zip files -

#36 (comment)

There is also help message after running pack(), I'll see if the message can be improved and be more verbose of the steps.

@kensoh kensoh added the query label May 27, 2022
@kensoh kensoh changed the title How do I use the files generated by pack()? How do I use the files generated by pack() - move to intranet and use directly May 27, 2022
@kensoh
Copy link
Member

kensoh commented May 27, 2022

Adding on, the following info messages will appear after running pack(). I think they are quite clear on how to use the generated files, so I won't be changing it.

Note that your python script must be in the same folder as the rpa.py file to work. Because of lack of intranet, I'm not relying on having pip command available to install package normally. So users have to have a copy of the rpa.py file in the same folder as the Python automation script.

[RPA][INFO] - done. copy rpa_python.zip and rpa.py to your target computer.
[RPA][INFO] - then install and use with import rpa as r followed by r.init()

@kensoh
Copy link
Member

kensoh commented May 31, 2022

Closing issue for time being until further inputs

@kensoh kensoh closed this as completed May 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants