Skip to content

Commit fd1ed49

Browse files
committed
Undo previous commit to enable proper attribution
1 parent a34354d commit fd1ed49

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

transcrypt/modules/org/transcrypt/compiler.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,8 @@ def __init__ (
7575
self.sourceDir = '/'.join (self.sourcePrepath.split ('/') [ : -1])
7676
self.mainModuleName = self.sourcePrepath.split ('/') [-1]
7777

78-
if utils.commandArgs.outdir:
79-
if os.path.isabs (utils.commandArgs.outdir):
80-
self.targetDir = utils.commandArgs.outdir.replace ('\\', '/')
81-
else:
82-
self.targetDir = f'{self.sourceDir}/{utils.commandArgs.outdir}'.replace ('\\', '/')
83-
else:
84-
self.targetDir = f'{self.sourceDir}/__target__'.replace ('\\', '/')
78+
79+
self.targetDir = f'{self.sourceDir}/__target__'.replace ('\\', '/')
8580

8681
self.projectPath = f'{self.targetDir}/{self.mainModuleName}.project'
8782

@@ -312,7 +307,7 @@ def findPaths (self, filter):
312307
break
313308

314309
# Remember all fruitless paths to give a decent error report if module isn't found
315-
# Note that this aren't all searched paths for a particular module,
310+
# Note that these aren't all searched paths for a particular module,
316311
# since the difference between an module and a facility inside a module isn't always known a priori
317312
self.program.searchedModulePaths.extend ([self.pythonSourcePath, self.javascriptSourcePath])
318313
else:

transcrypt/modules/org/transcrypt/utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ def parse (self):
6565
self.argParser.add_argument ('-m', '--map', help = "generate source map", action = 'store_true')
6666
self.argParser.add_argument ('-n', '--nomin', help = "no minification", action = 'store_true')
6767
self.argParser.add_argument ('-o', '--opov', help = "enable operator overloading by default. In general this is disadvised, use __pragma__ ('opov') and __pragma__('noopov') locally instead to prevent slow code", action = 'store_true')
68-
self.argParser.add_argument ('-od', '--outdir', help = 'override output directory (default = __target__)')
6968
self.argParser.add_argument ('-p', '--parent', nargs = '?', help = "object that will hold application, default is window. Use -p .none to generate orphan application, e.g. for use in node.js")
7069
self.argParser.add_argument ('-r', '--run', help = "run source file rather than compiling it", action = 'store_true')
7170
self.argParser.add_argument ('-s', '--symbols', nargs ='?', help = "names, joined by $, separately passed to main module in __symbols__ variable")

0 commit comments

Comments
 (0)