from Library.Misc import CreateDirectory\r
from Library.Misc import RemoveDirectory\r
from Core.FileHook import __FileHookOpen__\r
+from Common.MultipleWorkspace import MultipleWorkspace as mws\r
\r
\r
class PackageFile:\r
# @param Files: the files to pack \r
#\r
def PackFiles(self, Files):\r
- for File1 in Files:\r
- self.PackFile(File1)\r
+ for File in Files:\r
+ Cwd = os.getcwd()\r
+ os.chdir(mws.getWs(mws.WORKSPACE, File))\r
+ self.PackFile(File)\r
+ os.chdir(Cwd)\r
\r
## Pack the file\r
# \r