Test Linux user folder
This commit is contained in:
4
Utils.py
4
Utils.py
@@ -78,7 +78,9 @@ def output_path(path):
|
|||||||
# True for expanding the tilde into a fully qualified path
|
# True for expanding the tilde into a fully qualified path
|
||||||
documents = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, True)[0]
|
documents = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, True)[0]
|
||||||
elif sys.platform.find("linux") or sys.platform.find("ubuntu") or sys.platform.find("unix"):
|
elif sys.platform.find("linux") or sys.platform.find("ubuntu") or sys.platform.find("unix"):
|
||||||
documents = os.path.join("~","Documents")
|
documents = os.path.expanduser("~")
|
||||||
|
print(documents)
|
||||||
|
documents = os.path.join(documents,"Documents")
|
||||||
else:
|
else:
|
||||||
raise NotImplementedError('Not supported yet')
|
raise NotImplementedError('Not supported yet')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user