0
Python director / file access in TABLET
I plan to store my Python codes in a server and through WIFI access this code in TABLET. can we write in such a way that, code look out for a File in Android path of TABLET though running at Server.. currently our POC shows , it always expect file to be ( or folder to be) available at server where we kept our executable code
1 Respuesta
+ 1
Where your python code is stored is the “current working directory”, short for cwd. If you want to store your code in the server, and working with files OUTSIDE that directory (commonly known as folder), you need a way to tell your code to “change” the cwd.
I suggest you search for “pathlib.Path” and “os” modules. They have methods to change the cwd.