64 simple assignment. |
64 simple assignment. |
65 """ |
65 """ |
66 global modDir, pyModDir |
66 global modDir, pyModDir |
67 |
67 |
68 modDir = sysconfig.get_path("platlib") |
68 modDir = sysconfig.get_path("platlib") |
|
69 if not os.access(modDir, os.W_OK): |
|
70 # can't write to the standard path, use the 'user' path instead |
|
71 if sys.platform.startswith(("win", "cygwin")): |
|
72 scheme = "nt_user" |
|
73 elif sys.platform == "darwin": |
|
74 scheme = "osx_framework_user" |
|
75 else: |
|
76 scheme = "posix_user" |
|
77 modDir = sysconfig.get_path("platlib", scheme) |
69 pyModDir = modDir |
78 pyModDir = modDir |
70 |
79 |
71 |
80 |
72 def uninstallEricDebugClients(): |
81 def uninstallEricDebugClients(): |
73 """ |
82 """ |