diff --git a/parl/remote/client.py b/parl/remote/client.py index 7e095ff25f3723e070081c73f80cf80c4cec5a2f..fd17adb75babfa6ed86e82d460fd3025ad538cc5 100644 --- a/parl/remote/client.py +++ b/parl/remote/client.py @@ -105,6 +105,9 @@ class Client(object): for file in distributed_files: assert os.path.exists(file) + assert not os.path.isabs( + file + ), "[XPARL] Please do not distribute a file with absolute path." with open(file, 'rb') as f: content = f.read() pyfiles['other_files'][file] = content