I've created a python toolbox that pulls data from an enterprise GDB, defined by an SDE file.
SDE_connection = os.path.join(SDE_dir, 'mydb_database.windows.net.sde')
my_gdb = os.path.join(SDE_connection, 'my_table')
arcpy.conversion.ExportTable(my_gdb, some_filepath)
This works fine, however I recently realized when trying to run this toolbox on someone else's computer that Arcpy treats os.path.join('C:\Computer1\my_project', SDE_connection, my_gdb) as being a completely different table than os.path.join('C:\Computer2\my_project', SDE_connection, my_gdb). Trying to access data from the second one results in a table not found error.
I originally created the table in the EGDB with something like: arcpy.conversion.ExportTable(csv_filepath, my_gdb)
How do I use an SDE to access data regardless of the exact filepath to the SDE?