Hi Guys,

I've to move my code from Pharo8 to Pharo10, here: https://lists.pharo.org/empathy/thread/BMON6SATURPEHBHCWYOMOXCYMWEK7YE6?hash=BMON6SATURPEHBHCWYOMOXCYMWEK7YE6#BMON6SATURPEHBHCWYOMOXCYMWEK7YE6 , Esteban suggests to use Tonel, I've no experience with it and after looking for info on the web, I summarize here these 2 statements

To export a package named MyPackage:

[ :packageName :directory |
      TonelWriter fileOut:  packageName asPackage mcWorkingCopy on: directory.
] value: 'MyPackage' value: '/aSelected/directory' asFileReference 




To import the package into another image:

(TonelReader on: '/aSelected/directory' asFileReference  fileName: 'MyPackage') version load.

HTH
Cheers
Davide