Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #72.7K
I'm having difficulties parsing filepaths sent as arguments: If I type: [code]os.path.normpath('D:\Data2\090925')[/code] I get [code]'D:\\Data2\x0090925'[/code] 0bviously the \0 in the folder name is upsetting the formatting. I can correct it with the following: [code]os.path.normpath(r'D:\Data2\090925')[/code] which gives [code]'D:\\Data2\\090925'[/code] My problem is, how do I achieve the same result with sys.argv, namely: … |